Skip to content

Use port from PORT env variable if available #502

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

Merged
merged 1 commit into from
Apr 17, 2019

Conversation

RoyalIcing
Copy link
Contributor

Some services such as Google Cloud Run specify the port via the PORT env variable. If we allow reading from that (if it doesn’t exist we fallback to 8443) then they will be more likely to work out of the box.

@kylecarbs kylecarbs merged commit c4c2605 into coder:master Apr 17, 2019
@nathang21
Copy link

nathang21 commented Apr 20, 2019

Anyone have luck getting this to work on Cloud Run?
I've tried both the authenticatedUsers & allUsers options.

authenticatedUsers: 403 error "Your client does not have permission to get URL / from this server."
allUsers: I keep getting a 301 redirect loop when viewing the public URL until Chrome says "ERR_TOO_MANY_REDIRECTS"

Maybe I need to figure out the certificates since Cloud Run forces HTTPS.

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

Successfully merging this pull request may close these issues.

3 participants