mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
le dns
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
from pathlib import Path
|
||||
|
||||
from dotenv import dotenv_values
|
||||
|
||||
|
||||
ASSETS_DIR = Path(__file__).parent / 'assets'
|
||||
CONFIG_DIR = Path(__file__).parent.parent / 'config'
|
||||
@@ -9,3 +11,9 @@ OFM_DIR = '/data/ofm'
|
||||
REMOTE_CONFIG = '/data/ofm/config'
|
||||
TILE_GEN_BIN = '/data/ofm/tile_gen/bin'
|
||||
HTTP_HOST_BIN = '/data/ofm/http_host/bin'
|
||||
|
||||
DOTENV_VALUES = dotenv_values(f'{CONFIG_DIR}/.env')
|
||||
|
||||
|
||||
def dotenv_val(key):
|
||||
return DOTENV_VALUES.get(key, '').strip()
|
||||
|
||||
Reference in New Issue
Block a user