@@ -97,7 +97,7 @@ async def dispatch(self, request: Request, call_next):
9797async 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
377377def 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
418419if __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