Skip to content

Commit d830a6f

Browse files
committed
chore: sync with main repo - Visionatrix/Visionatrix#398
Signed-off-by: bigcat88 <[email protected]>
1 parent 6df178c commit d830a6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ex_app/lib/main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async def dispatch(self, request: Request, call_next):
9797
async def lifespan(_app: FastAPI):
9898
global SUPERUSER_PASSWORD
9999

100-
SUPERUSER_PASSWORD = os.environ["ADMIN_OVERRIDE"].split(":")[1]
100+
SUPERUSER_PASSWORD = os.environ["VIX_AUTH_ADMIN_OVERRIDE"].split(":")[1]
101101
print(_("Visionatrix"), flush=True)
102102
setup_nextcloud_logging("visionatrix", logging_level=logging.WARNING)
103103
_t1 = asyncio.create_task(start_nextcloud_provider_registration()) # noqa
@@ -376,6 +376,7 @@ async def start_nextcloud_provider_registration():
376376

377377
def start_visionatrix() -> None:
378378
if os.environ.get("NC_DEV_SKIP_RUN") != "1":
379+
os.environ["VIX_AUTH"] = "1"
379380
visionatrix_python = "/Visionatrix/venv/bin/python"
380381
if os.environ.get("DISABLE_WORKER") != "1":
381382
# Run server in background and redirect output to server.log
@@ -416,7 +417,7 @@ def start_visionatrix() -> None:
416417

417418

418419
if __name__ == "__main__":
419-
os.environ["ADMIN_OVERRIDE"] = f"{SUPERUSER_NAME}:{SUPERUSER_PASSWORD}"
420+
os.environ["VIX_AUTH_ADMIN_OVERRIDE"] = f"{SUPERUSER_NAME}:{SUPERUSER_PASSWORD}"
420421
start_visionatrix()
421422
os.chdir(Path(__file__).parent)
422423
run_app("main:APP", log_level="trace")

0 commit comments

Comments
 (0)