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