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