瀏覽代碼

Strict transport security off

Bob Mottram 11 年之前
父節點
當前提交
394dbeb5d7
共有 1 個檔案被更改,包括 18 行新增6 行删除
  1. 18
    6
      beaglebone.txt

+ 18
- 6
beaglebone.txt 查看文件

2546
     ssl_prefer_server_ciphers on;
2546
     ssl_prefer_server_ciphers on;
2547
     ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # not possible to do exclusive
2547
     ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # not possible to do exclusive
2548
     ssl_ciphers 'EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA';
2548
     ssl_ciphers 'EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA';
2549
-    add_header Strict-Transport-Security max-age=15768000; # six months
2549
+    add_header Strict-Transport-Security "max-age=0;";
2550
+    # Only uncomment one of the Strict-Transport-Security entries if you are
2551
+    # not using a self-signed certificate
2552
+    # add_header Strict-Transport-Security max-age=15768000; # six months
2550
     # use this only if all subdomains support HTTPS!
2553
     # use this only if all subdomains support HTTPS!
2551
     # add_header Strict-Transport-Security "max-age=15768000; includeSubDomains";
2554
     # add_header Strict-Transport-Security "max-age=15768000; includeSubDomains";
2552
 
2555
 
4987
     ssl_prefer_server_ciphers on;
4990
     ssl_prefer_server_ciphers on;
4988
     ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # not possible to do exclusive
4991
     ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # not possible to do exclusive
4989
     ssl_ciphers 'EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA';
4992
     ssl_ciphers 'EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA';
4990
-    #add_header Strict-Transport-Security max-age=15768000; # six months
4993
+    add_header Strict-Transport-Security "max-age=0;";
4994
+    # Only uncomment one of the Strict-Transport-Security entries if you are
4995
+    # not using a self-signed certificate
4996
+    # add_header Strict-Transport-Security max-age=15768000; # six months
4991
     # use this only if all subdomains support HTTPS!
4997
     # use this only if all subdomains support HTTPS!
4992
-    add_header Strict-Transport-Security "max-age=15768000; includeSubDomains";
4998
+    # add_header Strict-Transport-Security "max-age=15768000; includeSubDomains";
4993
 
4999
 
4994
     client_max_body_size 6m;
5000
     client_max_body_size 6m;
4995
 
5001
 
5527
     ssl_prefer_server_ciphers on;
5533
     ssl_prefer_server_ciphers on;
5528
     ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # not possible to do exclusive
5534
     ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # not possible to do exclusive
5529
     ssl_ciphers 'EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA';
5535
     ssl_ciphers 'EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA';
5530
-    add_header Strict-Transport-Security max-age=15768000; # six months
5536
+    add_header Strict-Transport-Security "max-age=0;";
5537
+    # Only uncomment one of the Strict-Transport-Security entries if you are
5538
+    # not using a self-signed certificate
5539
+    # add_header Strict-Transport-Security max-age=15768000; # six months
5531
     # use this only if all subdomains support HTTPS!
5540
     # use this only if all subdomains support HTTPS!
5532
     # add_header Strict-Transport-Security "max-age=15768000; includeSubDomains";
5541
     # add_header Strict-Transport-Security "max-age=15768000; includeSubDomains";
5533
 
5542
 
7212
     ssl_prefer_server_ciphers on;
7221
     ssl_prefer_server_ciphers on;
7213
     ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # not possible to do exclusive
7222
     ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # not possible to do exclusive
7214
     ssl_ciphers 'EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA';
7223
     ssl_ciphers 'EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH:+CAMELLIA256:+AES256:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!ECDSA:CAMELLIA256-SHA:AES256-SHA:CAMELLIA128-SHA:AES128-SHA';
7215
-    #add_header Strict-Transport-Security max-age=15768000; # six months
7224
+    add_header Strict-Transport-Security "max-age=0;";
7225
+    # Only uncomment one of the Strict-Transport-Security entries if you are
7226
+    # not using a self-signed certificate
7227
+    # add_header Strict-Transport-Security max-age=15768000; # six months
7216
     # use this only if all subdomains support HTTPS!
7228
     # use this only if all subdomains support HTTPS!
7217
-    add_header Strict-Transport-Security "max-age=15768000; includeSubDomains";
7229
+    # add_header Strict-Transport-Security "max-age=15768000; includeSubDomains";
7218
 
7230
 
7219
     client_max_body_size 6m;
7231
     client_max_body_size 6m;
7220
 
7232