mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update site.py
This commit is contained in:
@@ -1945,6 +1945,8 @@ location ^~ {from} {\n\
|
||||
conf = mw.readFile(path)
|
||||
rep = r"listen\s+80\s*;"
|
||||
conf = re.sub(rep, 'listen 80 default_server;', conf, 1)
|
||||
rep = r"listen\s+[::]:80\s*ssl\s*\w*\s*;"
|
||||
conf = re.sub(rep, 'listen [::]:80 default_server;', conf, 1)
|
||||
rep = r"listen\s+443\s*ssl\s*\w*\s*;"
|
||||
conf = re.sub(rep, 'listen 443 ssl default_server;', conf, 1)
|
||||
rep = r"listen\s+443\s*quic\s*\w*\s*;"
|
||||
|
||||
Reference in New Issue
Block a user