bunch of shit
This commit is contained in:
@@ -203,6 +203,9 @@ def env_hosts():
|
||||
key, value = line.split("=", 1)
|
||||
values[key.strip()] = value.strip()
|
||||
break
|
||||
# .env carries no AUTH_HOST (it lives in the Caddyfile); every host here is <role>.<domain>, so derive it
|
||||
if "AUTH_HOST" not in values and values.get("MAIN_HOST", "").count(".") >= 2:
|
||||
values["AUTH_HOST"] = "auth." + values["MAIN_HOST"].split(".", 1)[1]
|
||||
return values
|
||||
|
||||
def landing_markdown(hosts):
|
||||
@@ -210,7 +213,10 @@ def landing_markdown(hosts):
|
||||
host = hosts.get(key)
|
||||
return f"https://{host}{path}" if host else None
|
||||
rows = [
|
||||
("Stuck recordings", "/stuck", "finished but never published — why, and retry or bin"),
|
||||
("Live streams", "/streaming#live", "who is publishing, loss on the way in, why files are splitting"),
|
||||
("Stuck recordings", "/streaming#stuck", "finished but never published — why, and retry or bin"),
|
||||
("Dump a night", "/streaming#dump", "a streamer's or everyone's night to trash; bin all unprocessed"),
|
||||
("Disk", "/disk", "space by streamer and clipper per month, trash, logs, system"),
|
||||
("Live portal", url("LIVE_HOST"), "watch every active stream"),
|
||||
("OBS dock", url("LIVE_HOST", "/dock/"), "go live, titles, dump tonight"),
|
||||
("Files", url("FILES_HOST"), "browse, download, upload finals"),
|
||||
@@ -220,6 +226,7 @@ def landing_markdown(hosts):
|
||||
("Bot", url("BOT_HOST"), "the Discord bot's own pages"),
|
||||
("Syncthing", url("SYNC_HOST"), "clip intake, device pairing"),
|
||||
("Authentik", url("AUTH_HOST", "/if/admin/"), "users, groups, policies"),
|
||||
("Admin sign-in", url("AUTH_HOST", "/if/flow/default-authentication-flow/?admin=1"), "password card for akadmin — members are forwarded straight to Discord"),
|
||||
]
|
||||
lines = ["### Vanguard", "", "| | |", "|---|---|"]
|
||||
for name, link, why in rows:
|
||||
|
||||
Reference in New Issue
Block a user