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
HTTP -> HTTPS redirect fail if HTTPS_PORT is not 443 #2655
Comments
Thank you for reporting this, @frafra. We will fix in our next release (next week). |
@frafra When you visit the
I would like to know about your use case
Fixing this issue complicates the setup and could lead to other bugs. So I want to avoid it unless we don't have a better workaround. |
@silentninja I think that the issue is that I interpreted Having two different variables to set both the public port (or public URL) and the local one could provide additional flexibility. I just tried to run a production environment on my work machine, where I do not have root access, so I cannot open port 80 or 443. It could be that my misunderstanding is linked to using the compose and env files directly, since I opted for not using the script to generate the configuration. |
Moved this to 0.1.2 since I don't want to block 0.1.1 on this issue and we'll be focusing more on installation improvements in 0.1.2. |
@silentninja What is the status of this issue? |
Description
HTTPS_PORT
is a variable used by the compose file to map Caddy HTTPS port toHTTPS_PORT
. Changing such variable does not affect the HTTP to HTTPS redirect, so the redirect is broken.Expected behavior
Changing
HTTPS_PORT
should affect the HTTP to HTTPS redirect as well.To Reproduce
cp .env.template .env
.env
:docker compose --profile prod up --build
The text was updated successfully, but these errors were encountered: