mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 22:12:15 +00:00
config refactor
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
NGINX_DIR = Path(__file__).parent / 'nginx'
|
||||
|
||||
DEFAULT_RUNS_DIR = Path('/data/ofm/http_host/runs')
|
||||
DEFAULT_ASSETS_DIR = Path('/data/ofm/http_host/assets')
|
||||
|
||||
MNT_DIR = Path('/mnt/ofm')
|
||||
OFM_CONFIG_DIR = Path('/data/ofm/config')
|
||||
HTTP_HOST_BIN_DIR = Path('/data/ofm/http_host/bin')
|
||||
|
||||
CERTS_DIR = Path('/data/nginx/certs')
|
||||
|
||||
try:
|
||||
with open('/data/ofm/config/http_host.json') as fp:
|
||||
HOST_CONFIG = json.load(fp)
|
||||
except Exception:
|
||||
HOST_CONFIG = {}
|
||||
|
||||
Reference in New Issue
Block a user