nginx: enable Strict Transport Security
This commit is contained in:
parent
f6fea27c12
commit
4f6234ea8f
1 changed files with 4 additions and 2 deletions
|
@ -10,8 +10,9 @@ http {
|
||||||
server {
|
server {
|
||||||
include server-base.conf;
|
include server-base.conf;
|
||||||
|
|
||||||
listen 443 default;
|
add_header Strict-Transport-Security "max-age=63072000; preload";
|
||||||
|
|
||||||
|
listen 443 default;
|
||||||
ssl on;
|
ssl on;
|
||||||
ssl_certificate ./stack/ssl.cert;
|
ssl_certificate ./stack/ssl.cert;
|
||||||
ssl_certificate_key ./stack/ssl.key;
|
ssl_certificate_key ./stack/ssl.key;
|
||||||
|
@ -25,8 +26,9 @@ http {
|
||||||
include proxy-protocol.conf;
|
include proxy-protocol.conf;
|
||||||
include server-base.conf;
|
include server-base.conf;
|
||||||
|
|
||||||
listen 8443 default proxy_protocol;
|
add_header Strict-Transport-Security "max-age=63072000; preload";
|
||||||
|
|
||||||
|
listen 8443 default proxy_protocol;
|
||||||
ssl on;
|
ssl on;
|
||||||
ssl_certificate ./stack/ssl.cert;
|
ssl_certificate ./stack/ssl.cert;
|
||||||
ssl_certificate_key ./stack/ssl.key;
|
ssl_certificate_key ./stack/ssl.key;
|
||||||
|
|
Reference in a new issue