mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-22 14:32:15 +00:00
work
This commit is contained in:
@@ -38,14 +38,14 @@ def cli():
|
|||||||
print(f"{run_dir} doesn't exists, skipping")
|
print(f"{run_dir} doesn't exists, skipping")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
tilejson_path = run_dir / 'tilejson-tiles-org.json'
|
tilejson_path = run_dir / 'tilejson-tiles-com.json'
|
||||||
|
|
||||||
metadata_path = subdir / 'metadata.json'
|
metadata_path = subdir / 'metadata.json'
|
||||||
if not metadata_path.is_file():
|
if not metadata_path.is_file():
|
||||||
print(f"{metadata_path} doesn't exists, skipping")
|
print(f"{metadata_path} doesn't exists, skipping")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
url_prefix = f'https://tiles.openfreemap.org/{area}/{version}/tiles//'
|
url_prefix = f'https://tiles.openfreemap.com/{area}/{version}/tiles//'
|
||||||
|
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
[
|
[
|
||||||
@@ -88,7 +88,7 @@ def cli():
|
|||||||
|
|
||||||
nginx_template = nginx_template.replace('___LOCATION_BLOCKS___', location_block_str)
|
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)
|
fp.write(nginx_template)
|
||||||
print('nginx config written')
|
print('nginx config written')
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
server {
|
server {
|
||||||
server_name ofm tiles.openfreemap.org;
|
server_name ofm tiles.openfreemap.com;
|
||||||
|
|
||||||
# disabling access log by default
|
# disabling access log by default
|
||||||
# access_log /data/ofm/http_host/logs_nginx/nginx-access.log access_json buffer=32k;
|
# access_log /data/ofm/http_host/logs_nginx/nginx-access.log access_json buffer=32k;
|
||||||
|
|||||||
Reference in New Issue
Block a user