diff options
author | crupest <crupest@outlook.com> | 2022-11-19 17:35:41 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-19 17:35:41 +0800 |
commit | 8e9dd42976020d501c6fb02fc67a0f4e93a5c96b (patch) | |
tree | e29a4c2ca46103f6ba29a424b3b208f26534551f /tool/modules/nginx.py | |
parent | a1bd1a5edf58458b9058b170cdd9cb091ddf629c (diff) | |
download | crupest-8e9dd42976020d501c6fb02fc67a0f4e93a5c96b.tar.gz crupest-8e9dd42976020d501c6fb02fc67a0f4e93a5c96b.tar.bz2 crupest-8e9dd42976020d501c6fb02fc67a0f4e93a5c96b.zip |
Fix nginx generation issue.
Diffstat (limited to 'tool/modules/nginx.py')
-rwxr-xr-x | tool/modules/nginx.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tool/modules/nginx.py b/tool/modules/nginx.py index bf758b2..39b6c17 100755 --- a/tool/modules/nginx.py +++ b/tool/modules/nginx.py @@ -23,6 +23,9 @@ static_file_template = Template(os.path.join( reverse_proxy_template = Template(os.path.join( nginx_template_dir, 'reverse-proxy.conf.template')) +nginx_var_set = set.union(root_template.var_set, + static_file_template.var_set, reverse_proxy_template.var_set) + def nginx_config_gen(domain: str, dest: str) -> None: if not os.path.isdir(dest): |