aboutsummaryrefslogtreecommitdiff
path: root/tool/modules/nginx.py
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2023-07-17 22:47:17 +0800
committercrupest <crupest@outlook.com>2023-07-17 22:47:17 +0800
commitdd29a7761e180d1a255d2c6e86861f12e64eb861 (patch)
tree22b946060ebdba7532d9f6f32a12bd44df3d9d28 /tool/modules/nginx.py
parentdcc80565514de8a44b50984c427a873a1779490a (diff)
downloadcrupest-dd29a7761e180d1a255d2c6e86861f12e64eb861.tar.gz
crupest-dd29a7761e180d1a255d2c6e86861f12e64eb861.tar.bz2
crupest-dd29a7761e180d1a255d2c6e86861f12e64eb861.zip
Try to fix nginx.
Diffstat (limited to 'tool/modules/nginx.py')
-rwxr-xr-xtool/modules/nginx.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tool/modules/nginx.py b/tool/modules/nginx.py
index db350a7..f69c5df 100755
--- a/tool/modules/nginx.py
+++ b/tool/modules/nginx.py
@@ -83,8 +83,7 @@ def generate_nginx_config(domain: str, original_config, dest: str) -> None:
local_config['CRUPEST_NGINX_ROOT'] = site["root"]
elif site["type"] == 'reverse-proxy':
template = reverse_proxy_template
- local_config['CRUPEST_NGINX_UPSTREAM_NAME'] = site["upstream"]["name"]
- local_config['CRUPEST_NGINX_UPSTREAM_SERVER'] = site["upstream"]["server"]
+ local_config['CRUPEST_NGINX_UPSTREAM_SERVER'] = site["upstream"]
elif site["type"] == 'redirect':
template = redirect_template
local_config['CRUPEST_NGINX_URL'] = site["url"]