mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-04-01 21:27:22 +02:00
redirect all HTTP to HTTPS and enable HSTS, closes #18
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#ssl_certificate_key /path/to/my-private-decrypted.key;
|
||||
|
||||
# optional: tell browsers to require SSL (warning: difficult to change your mind)
|
||||
#add_header Strict-Transport-Security max-age=31536000;
|
||||
add_header Strict-Transport-Security max-age=31536000;
|
||||
|
||||
# optional: prefer certain ciphersuites, to enforce Perfect Forward Secrecy and avoid known vulnerabilities.
|
||||
# done in consultation with:
|
||||
@@ -43,4 +43,4 @@ spdy_headers_comp 6;
|
||||
ssl_stapling on;
|
||||
ssl_stapling_verify on;
|
||||
resolver 8.8.8.8;
|
||||
#ssl_trusted_certificate /path/to/all-certs-in-chain.crt;
|
||||
#ssl_trusted_certificate /path/to/all-certs-in-chain.crt;
|
||||
|
||||
Reference in New Issue
Block a user