-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add redirect HTTP tp HTTPS in NGING config #6263
Comments
How can I test this feature? |
You can change the nginx.conf.j2 file like in my commit. But not with the variable REDIRECT_HTTP, but as if it had been answered with yes. The config itself is working. |
You should open a PR for this feature. |
I've opened now the PR #6265, with my (not working) changed. It would be very helpful if someone would take a look at the changes. |
My dirty fix is to move the content of
|
Will be fixed in the next release |
Summary
Redirect HTTP to HTTPS is not activated at default and was only possible via creating a new file.
https://docs.mailcow.email/manual-guides/u_e-80_to_443/
For me, his will not work anymore after updating to 2025.1. The file will be imported, but the ports and sites will be doubled with nginx.conf.j2
Motivation
The redirect should work and also be the standard configuration.
I think the best option is to add it in the "nginx.conf.j2" file and define a config variable to deactivate it.
Additional context
I tried to change the file as described, but was not able to set the variable in mailcow.conf, so the configuration was changed.
The text was updated successfully, but these errors were encountered: