add API_PASSWORD env and update screenshots
All checks were successful
Build the docker image for the API / build (push) Successful in 9s
Build the docker image for the frontend application / build (push) Successful in 9s
Build the docker image for the doc server / build (push) Successful in 8s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-01-20 10:14:57 +03:00
parent 21c5a2ee53
commit 01205d6a1f
4 changed files with 9 additions and 4 deletions

View File

@ -218,6 +218,7 @@ class AdminScript:
"logs": self.get_logs,
}
self.api_url_env = "API_URL"
self.password_env = "API_PASSWORD"
def __format_time(self, ts: int) -> str:
return datetime.fromtimestamp(ts, UTC).strftime("%H:%M:%S %d/%m/%Y")
@ -264,7 +265,10 @@ class AdminScript:
return False
try:
password = self.log.password("Please enter the admin password")
password = getenv(self.password_env)
if password is None:
password = self.log.password("Please enter the admin password")
self.api = AdminAPI(url, password)
if len(argv) == 2: