-
Notifications
You must be signed in to change notification settings - Fork 281
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
Ignoring HTTPS APP_URL #271
Comments
I have exactly the same issue any progress on this issue? |
I have the same problem in OpenShift cluster. |
Same here, seems APP_URL is ignored for creating routes. Only got it working by adding
But using the docker image, I don't want to hack around with the file on deployment. Would be nice if cachet would be using the https in the APP_URL for generating routes. |
cc @CachetHQ/core ☝️ |
APP_URL is just used for console commands at the moment, when installing Cachet behind a load balancer the http/https protocol it's resolved by the TrustedProxies middleware. The config for the trusted ip ranges is at @denwilliams Can you confirm which version of Cachet are you using? |
Well that's not really working with AWS-ELB's. ELB's don't really have an IP, they have a pool, which can vary depending on the traffic. For example at the moment my cachet-ELB is returning 52.58.X.X, 212.86.X.X and 18.196.X.X, calculating the possible range would be impossible. A config option, e.g. setting USE_HTTPS to enforce https usage in the app would at least be more helpful in an AWS like environment. |
Sorry @joecohens I missed that question. I was using |
Thanks for the tip @joecohens that did the work! Maybe you should add rfc1928 prefix as well by default? |
Have the same problem as @aberfeldy - using AWS ELBs. Would be great if we could override or add to trusted proxies by environment variable. |
Same issue here on Google Cloud Kubernetes using the Nginx ingress controller (LB level 7). |
Same here using nginx |
Reopening here as we should include this in the entrypoint as a possible runtime env option |
Hi, I used @aberfeldy 's
Not sure why the redirects from setup and within the dashboard all work but from /auth/login does not. Any advice? |
If you are still interested, I posted a Dockerfile example that fixes (in an ugly way) this issue: cachethq/cachet#3952 |
I have this running on AWS ECS behind an AWS load balancer:
With the APP_URL env var set to
https://status....
However when opening the dashboard all the links are
http://status...
. In addition the subscribe form tries to post tohttp://...
I'm not sure what is rewriting the URLs. I haven't specified HTTP anywhere.
The container itself runs on HTTP.
Any configuration I'm missing, or is something awry here?
The text was updated successfully, but these errors were encountered: