|
|
@ -2785,7 +2785,8 @@ location ^~ {from} {\n\ |
|
|
|
ssl_prefer_server_ciphers on; |
|
|
|
ssl_prefer_server_ciphers on; |
|
|
|
ssl_session_cache shared:SSL:10m; |
|
|
|
ssl_session_cache shared:SSL:10m; |
|
|
|
ssl_session_timeout 10m; |
|
|
|
ssl_session_timeout 10m; |
|
|
|
add_header Strict-Transport-Security "max-age=63072000" always; |
|
|
|
add_header Strict-Transport-Security "max-age=63072000"; |
|
|
|
|
|
|
|
add_header Alt-Svc 'h3=":443"; ma=2592000'; |
|
|
|
error_page 497 https://$host$request_uri;""" % (certPath, keyPath) |
|
|
|
error_page 497 https://$host$request_uri;""" % (certPath, keyPath) |
|
|
|
if(conf.find('ssl_certificate') != -1): |
|
|
|
if(conf.find('ssl_certificate') != -1): |
|
|
|
return mw.returnData(True, 'SSL开启成功!') |
|
|
|
return mw.returnData(True, 'SSL开启成功!') |
|
|
|