This commit is contained in:
Zsolt Ero
2023-12-30 20:10:28 +01:00
parent fdc21f5b90
commit 35476acf02
2 changed files with 4 additions and 4 deletions

View File

@@ -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')

View File

@@ -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;