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

View File

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