setversion, http_host

This commit is contained in:
Zsolt Ero
2024-06-24 17:56:05 +02:00
parent 11a9879f18
commit 37afbbb902
8 changed files with 106 additions and 40 deletions

View File

@@ -20,6 +20,13 @@ def write_nginx_config():
domain_le = HOST_CONFIG['domain_le']
domain_ledns = HOST_CONFIG['domain_ledns']
# remove old configs and certs
for file in Path('/data/nginx/sites').glob('ofm_*.conf'):
file.unlink()
for file in Path('/data/nginx/certs').glob('ofm_*'):
file.unlink()
# processing Round Robin DNS config
if domain_ledns:
if not (OFM_CONFIG_DIR / 'rclone.conf').is_file():