|
@@ -42,12 +42,6 @@ http {
|
|
|
ssl_dhparam /etc/ssl/dhparam.pem;
|
|
|
ssl_ecdh_curve secp384r1;
|
|
|
ssl_session_cache shared:SSL:10m;
|
|
|
- add_header Strict-Transport-Security "max-age=2592000; preload";
|
|
|
- add_header X-Frame-Options SAMEORIGIN;
|
|
|
- add_header X-Content-Type-Options nosniff;
|
|
|
- add_header X-XSS-Protection "1; mode=block";
|
|
|
- add_header Content-Security-Policy "default-src https: data: 'unsafe-inline' 'unsafe-eval' always; upgrade-insecure-requests";
|
|
|
- add_header Referrer-Policy "strict-origin-when-cross-origin";
|
|
|
ssl_session_timeout 1d;
|
|
|
|
|
|
##
|
|
@@ -78,25 +72,3 @@ http {
|
|
|
include /etc/nginx/conf.d/*.conf;
|
|
|
include /etc/nginx/sites-enabled/*;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-#mail {
|
|
|
-# # See sample authentication script at:
|
|
|
-# # http://wiki.nginx.org/ImapAuthenticateWithApachePhpScript
|
|
|
-#
|
|
|
-# # auth_http localhost/auth.php;
|
|
|
-# # pop3_capabilities "TOP" "USER";
|
|
|
-# # imap_capabilities "IMAP4rev1" "UIDPLUS";
|
|
|
-#
|
|
|
-# server {
|
|
|
-# listen localhost:110;
|
|
|
-# protocol pop3;
|
|
|
-# proxy on;
|
|
|
-# }
|
|
|
-#
|
|
|
-# server {
|
|
|
-# listen localhost:143;
|
|
|
-# protocol imap;
|
|
|
-# proxy on;
|
|
|
-# }
|
|
|
-#}
|