librelad 875a60f90f LibrePortal v0.1.0 — initial release
A free, open, self-hosted app platform (GNU AGPLv3): one-click app deploys,
Traefik reverse proxy with automatic SSL, rootless Docker support, gluetun
VPN routing, and a web dashboard to manage it all.

Free & open forever to self-host; optional paid hosted services fund it.
See PROMISE.md.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

Signed-off-by: librelad <librelad@digitalangels.vip>
2026-05-21 20:37:54 +01:00

18 lines
622 B
Bash

#!/bin/bash
authAdapter_traefik_setPassword() {
local user="$1" password="$2"
user="${user:-${CFG_TRAEFIK_USER:-admin}}"
[[ -z "$password" ]] && password=$(generateRandomPassword)
updateConfigOption "CFG_TRAEFIK_USER" "$user"
updateConfigOption "CFG_TRAEFIK_PASS" "$password"
export CFG_TRAEFIK_USER="$user" CFG_TRAEFIK_PASS="$password"
if declare -F traefikRegenerateProtectionAuth >/dev/null 2>&1; then
traefikRegenerateProtectionAuth
fi
dockerComposeRestart traefik 2>/dev/null || true
isSuccessful "Traefik dashboard login set. User: $user — Password: $password"
}