Compare commits
61 Commits
dev
...
eeeec03ab8
| Author | SHA1 | Date | |
|---|---|---|---|
| eeeec03ab8 | |||
| ff5ae0220d | |||
| 6ea0e23869 | |||
| 5fe5b5ed6f | |||
| 5d2c174fce | |||
| 624eddee2a | |||
| ba43261482 | |||
| 59287f8240 | |||
| 8f823afc21 | |||
| 489b5d00cc | |||
| 073ee88a84 | |||
| 054186bfcd | |||
| 2d66d20e41 | |||
| 49e99f2721 | |||
| a6273a24dc | |||
| 5da9bc072b | |||
| 767ea96b31 | |||
| 9c8df2d4d4 | |||
| e076d505f1 | |||
| 5a8e6cfa76 | |||
| 6647b0df21 | |||
| 0e0b2e57da | |||
| cac1e5c4e0 | |||
| 45201de406 | |||
| 74a45eb95c | |||
| 26159bd068 | |||
| f963a7e196 | |||
| 60d65bfd10 | |||
| 7c16255c61 | |||
| ee6e9b7d12 | |||
| 1851bc0652 | |||
| 0ba08e4a6d | |||
| 3e12bf6fe0 | |||
| 7fc4e7f086 | |||
| becb5c3aac | |||
| a54f4a6eee | |||
| fb4fcf5b27 | |||
| 45a035897d | |||
| 4da8e8e6e5 | |||
| 2a09bb0f48 | |||
| d456e2d083 | |||
| 3f07d0ad84 | |||
| f8488d72e7 | |||
| 7b0a5ca568 | |||
| cab9ef5d08 | |||
| e4f6078e63 | |||
| 8ebf434fb2 | |||
| 2b0fc2dee3 | |||
| f72974a593 | |||
| 13518e77d6 | |||
| a424d7950e | |||
| fe415f0bd8 | |||
| 07008122a8 | |||
| 031960c451 | |||
| a1fcd98eba | |||
| 4e4bdf12cb | |||
| e1b8bdb230 | |||
| 893a357eca | |||
| feee9ffb6d | |||
| dd63cf69cd | |||
| 829d978ac8 |
@@ -30,22 +30,6 @@ except Exception as e:
|
|||||||
|
|
||||||
config = ""
|
config = ""
|
||||||
for host, params in hosts.items():
|
for host, params in hosts.items():
|
||||||
websocket = ""
|
|
||||||
for url in params.get("websocket", []):
|
|
||||||
websocket += """
|
|
||||||
location {url} {{
|
|
||||||
resolver 127.0.0.11;
|
|
||||||
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection "upgrade";
|
|
||||||
|
|
||||||
proxy_read_timeout 86400;
|
|
||||||
proxy_send_timeout 86400;
|
|
||||||
|
|
||||||
proxy_pass http://{target_host}:{port};
|
|
||||||
}}
|
|
||||||
""".format(url=url, target_host=params["host"], port=params["port"])
|
|
||||||
config += """
|
config += """
|
||||||
server {{
|
server {{
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
@@ -55,7 +39,6 @@ for host, params in hosts.items():
|
|||||||
ssl_certificate /etc/nginx/{host}/fullchain.pem;
|
ssl_certificate /etc/nginx/{host}/fullchain.pem;
|
||||||
ssl_certificate_key /etc/nginx/{host}/privkey.pem;
|
ssl_certificate_key /etc/nginx/{host}/privkey.pem;
|
||||||
|
|
||||||
proxy_http_version 1.1;
|
|
||||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||||
add_header X-XSS-Protection "1; mode=block" always;
|
add_header X-XSS-Protection "1; mode=block" always;
|
||||||
add_header X-Content-Type-Options "nosniff" always;
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
@@ -65,16 +48,13 @@ for host, params in hosts.items():
|
|||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
{websocket}
|
|
||||||
|
|
||||||
location / {{
|
location / {{
|
||||||
resolver 127.0.0.11;
|
resolver 127.0.0.11;
|
||||||
proxy_pass http://{target_host}:{port};
|
proxy_pass http://{target_host}:{port}$request_uri;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
}}\n\n
|
}}\n\n
|
||||||
""".format(
|
""".format(
|
||||||
host=host, target_host=params["host"], port=params["port"], websocket=websocket
|
host=host, target_host=params["host"], port=params["port"]
|
||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
fullchain = minio_client.get_object(
|
fullchain = minio_client.get_object(
|
||||||
|
|||||||
Reference in New Issue
Block a user