1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-13 18:06:01 +00:00

[Nginx] Add env var for HTTP to HTTPS redirection

This commit is contained in:
FreddleSpl0it
2025-02-03 12:05:08 +01:00
parent bbdec0960a
commit e645f931dc
5 changed files with 53 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ def prepare_template_vars():
'RSPAMDHOST': os.getenv("RSPAMDHOST", "rspamd-mailcow"),
'PHPFPMHOST': os.getenv("PHPFPMHOST", "php-fpm-mailcow"),
'DISABLE_IPv6': os.getenv("DISABLE_IPv6", "n").lower() in ("y", "yes"),
'HTTP_REDIRECT': os.getenv("HTTP_REDIRECT", "n").lower() in ("y", "yes"),
}
ssl_dir = '/etc/ssl/mail/'