Update site_api.py

pull/267/head
midoks 3 years ago
parent 25083e7dd2
commit 9a9d97d482
  1. 3
      class/core/site_api.py

@ -2413,9 +2413,8 @@ location ^~ {from} {
if not mw.inArray(tmp, '443'):
listen = re.search(rep, conf).group()
http_ssl = "\n\tlisten 443 ssl http2;"
http_ssl = http_ssl + "\n\t[::]:443 ssl http2;"
conf = conf.replace(listen, listen + http_ssl)
http_ipv6_ssl = "\n\t[::]:443 ssl http2;"
conf = conf.replace(listen, listen + http_ipv6_ssl)
mw.backFile(file)

Loading…
Cancel
Save