From 3766db7df89cd57ab40265d3f825df5e0b623cbb Mon Sep 17 00:00:00 2001 From: Zsolt Ero Date: Fri, 29 Dec 2023 03:49:48 +0100 Subject: [PATCH] nginx_template --- init-server.py | 4 ++-- scripts/http_host/nginx_sync/nginx_sync.py | 2 +- .../nginx_sync/{nginx_site.conf => nginx_template.conf} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename scripts/http_host/nginx_sync/{nginx_site.conf => nginx_template.conf} (100%) diff --git a/init-server.py b/init-server.py index 2ffd51f..c56b632 100755 --- a/init-server.py +++ b/init-server.py @@ -117,7 +117,7 @@ def prepare_http_host(c): permissions='755', ) - for file in ['nginx_site.conf', 'nginx_sync.py']: + for file in ['nginx_template.conf', 'nginx_sync.py']: put( c, SCRIPTS_DIR / 'http_host' / 'nginx_sync' / file, @@ -130,7 +130,7 @@ def prepare_http_host(c): def debug_tmp(c): - for file in ['nginx_site.conf', 'nginx_sync.py']: + for file in ['nginx_template.conf', 'nginx_sync.py']: put( c, SCRIPTS_DIR / 'http_host' / 'nginx_sync' / file, diff --git a/scripts/http_host/nginx_sync/nginx_sync.py b/scripts/http_host/nginx_sync/nginx_sync.py index 38e1e6f..d063826 100755 --- a/scripts/http_host/nginx_sync/nginx_sync.py +++ b/scripts/http_host/nginx_sync/nginx_sync.py @@ -18,7 +18,7 @@ def cli(): if not Path('/mnt/ofm').exists(): sys.exit('mounter.py needs to be run first') - with open(Path(__file__).parent / 'nginx_site.conf') as fp: + with open(Path(__file__).parent / 'nginx_template.conf') as fp: nginx_template = fp.read() location_block_str = '' diff --git a/scripts/http_host/nginx_sync/nginx_site.conf b/scripts/http_host/nginx_sync/nginx_template.conf similarity index 100% rename from scripts/http_host/nginx_sync/nginx_site.conf rename to scripts/http_host/nginx_sync/nginx_template.conf