update defaults
This commit is contained in:
parent
f7c20a0951
commit
0a39ef2fe6
@ -9,7 +9,7 @@ BIND=0.0.0.0
|
||||
|
||||
# HTTP External Storage Server
|
||||
PORT_HTTP_EXTERNAL_STORAGE=5001
|
||||
BIND_HTTP_EXTERNAL_STORAGE=localhost
|
||||
BIND_HTTP_EXTERNAL_STORAGE=0.0.0.0
|
||||
CHROOT_HTTP_EXTERNAL_STORAGE=%application_dir%/var/run/storage
|
||||
|
||||
# Misc
|
||||
|
||||
@ -10,6 +10,7 @@ load_dotenv()
|
||||
class ConfigManager:
|
||||
|
||||
DEFAULT_PORT = 5000
|
||||
DEFAULT_PORT_HTTP_EXTERNAL_STORAGE = 5001
|
||||
VERSION_FILE = 'version.txt'
|
||||
|
||||
def __init__(self, replacers: Dict):
|
||||
@ -17,8 +18,8 @@ class ConfigManager:
|
||||
self._CONFIG = {
|
||||
'version': None,
|
||||
'demo': False,
|
||||
'port_http_external_storage': None,
|
||||
'bind_http_external_storage': 'localhost',
|
||||
'port_http_external_storage': self.DEFAULT_PORT_HTTP_EXTERNAL_STORAGE,
|
||||
'bind_http_external_storage': '0.0.0.0',
|
||||
'chroot_http_external_storage': '%application_dir%/var/run/storage',
|
||||
'port': self.DEFAULT_PORT,
|
||||
'bind': '0.0.0.0',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user