update defaults

This commit is contained in:
jr-k 2024-07-22 01:26:42 +02:00
parent f7c20a0951
commit 0a39ef2fe6
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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',