Skip to content

Commit d655028

Browse files
feat: add MAXKB_ADMIN_PATH env.
1 parent bc87101 commit d655028

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

apps/maxkb/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ def get_log_level(self):
104104
def get_sandbox_python_package_paths(self):
105105
return self.get('SANDBOX_PYTHON_PACKAGE_PATHS', '/opt/py3/lib/python3.11/site-packages,/opt/maxkb-app/sandbox/python-packages,/opt/maxkb/python-packages')
106106

107+
def get_admin_path(self):
108+
return self.get('ADMIN_PATH', '/admin')
109+
107110
def get_session_timeout(self):
108111
return int(self.get('SESSION_TIMEOUT', 28800))
109112

installer/Dockerfile-base

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ ENV PGDATA=/opt/maxkb/data/postgresql/pgdata \
3333
REDIS_PASSWORD=Password123@redis \
3434
LANG=en_US.UTF-8 \
3535
MAXKB_LOG_LEVEL=INFO \
36-
MAXKB_SANDBOX_PYTHON_PACKAGE_PATHS=/opt/py3/lib/python3.11/site-packages,/opt/maxkb-app/sandbox/python-packages,/opt/maxkb/python-packages
36+
MAXKB_SANDBOX_PYTHON_PACKAGE_PATHS=/opt/py3/lib/python3.11/site-packages,/opt/maxkb-app/sandbox/python-packages,/opt/maxkb/python-packages \
37+
MAXKB_ADMIN_PATH=/admin

0 commit comments

Comments
 (0)