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>
15 lines
501 B
Bash
Executable File
15 lines
501 B
Bash
Executable File
#!/bin/bash
|
|
|
|
setupHeadscaleGenerateAuthKey()
|
|
{
|
|
headscale_preauthkey=""
|
|
local temp_key_file="/docker/key.txt"
|
|
|
|
local CFG_INSTALL_NAME=$(echo "$CFG_INSTALL_NAME" | tr '[:upper:]' '[:lower:]')
|
|
dockerCommandRun "docker exec headscale headscale preauthkeys create -e 1h -u $CFG_INSTALL_NAME" > "$temp_key_file" 2>&1
|
|
checkSuccess "Generating Auth Key in Headscale for $app_name"
|
|
|
|
headscale_preauthkey=$(tr -d '\n' < "$temp_key_file")
|
|
headscale_preauthkey_file="$temp_key_file"
|
|
}
|