Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port hardcoded to 8000 & JQuery served over http #4

Open
BlackthornYugen opened this issue Mar 28, 2016 · 0 comments
Open

Port hardcoded to 8000 & JQuery served over http #4

BlackthornYugen opened this issue Mar 28, 2016 · 0 comments

Comments

@BlackthornYugen
Copy link

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?

BlackthornYugen added a commit to BlackthornYugen/ChatSafe that referenced this issue Mar 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant