Skip to content

Port hardcoded to 8000 & JQuery served over http #4

@BlackthornYugen

Description

@BlackthornYugen

Hi @DavidTimms, thanks for sharing this. I deployed this behind haproxy in a docker container and used the OPENSHIFT_INTERNAL_PORT to choose my own port.

docker run -d -e OPENSHIFT_INTERNAL_PORT=3000 --expose 3000 -p --workdir /app -v $PWD:/app node node /app/server.js

So I have the backend port using 3000 but in the front end it's just being served over 443. So instead of changing client.js to match the frontend port; could we change it to use window.location.port?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions