Update site_api.py

pull/542/head
Mr Chen 1 year ago
parent 87da2b9fc5
commit d3a5b9874b
  1. 3
      class/core/site_api.py

@ -2785,7 +2785,8 @@ location ^~ {from} {\n\
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL: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)
if(conf.find('ssl_certificate') != -1):
return mw.returnData(True, 'SSL开启成功!')

Loading…
Cancel
Save