From 35476acf02f8244ed070f59c8095c22b8ac12cdd Mon Sep 17 00:00:00 2001 From: Zsolt Ero Date: Sat, 30 Dec 2023 20:10:28 +0100 Subject: [PATCH] work --- scripts/http_host/nginx_sync/nginx_sync.py | 6 +++--- scripts/http_host/nginx_sync/nginx_template.conf | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/http_host/nginx_sync/nginx_sync.py b/scripts/http_host/nginx_sync/nginx_sync.py index e8bd440..89d9996 100755 --- a/scripts/http_host/nginx_sync/nginx_sync.py +++ b/scripts/http_host/nginx_sync/nginx_sync.py @@ -38,14 +38,14 @@ def cli(): print(f"{run_dir} doesn't exists, skipping") continue - tilejson_path = run_dir / 'tilejson-tiles-org.json' + tilejson_path = run_dir / 'tilejson-tiles-com.json' metadata_path = subdir / 'metadata.json' if not metadata_path.is_file(): print(f"{metadata_path} doesn't exists, skipping") continue - url_prefix = f'https://tiles.openfreemap.org/{area}/{version}/tiles//' + url_prefix = f'https://tiles.openfreemap.com/{area}/{version}/tiles//' subprocess.run( [ @@ -88,7 +88,7 @@ def cli(): nginx_template = nginx_template.replace('___LOCATION_BLOCKS___', location_block_str) - with open('/data/nginx/sites/ofm.conf', 'w') as fp: + with open('/data/nginx/sites/ofm-tiles-com.conf', 'w') as fp: fp.write(nginx_template) print('nginx config written') diff --git a/scripts/http_host/nginx_sync/nginx_template.conf b/scripts/http_host/nginx_sync/nginx_template.conf index f001799..d2b3c14 100644 --- a/scripts/http_host/nginx_sync/nginx_template.conf +++ b/scripts/http_host/nginx_sync/nginx_template.conf @@ -1,5 +1,5 @@ server { - server_name ofm tiles.openfreemap.org; + server_name ofm tiles.openfreemap.com; # disabling access log by default # access_log /data/ofm/http_host/logs_nginx/nginx-access.log access_json buffer=32k;