Update site_api.py

This commit is contained in:
midoks
2022-11-16 18:22:46 +08:00
parent 6801ea2eea
commit d2ebf6d038
+1 -1
View File
@@ -2413,7 +2413,7 @@ 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\ttlisten [::]:443 ssl http2;"
http_ssl = http_ssl + "\n\tlisten [::]:443 ssl http2;"
conf = conf.replace(listen, listen + http_ssl)
mw.backFile(file)