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>
33 lines
744 B
Bash
Executable File
33 lines
744 B
Bash
Executable File
#!/bin/bash
|
|
|
|
setupHeadscaleUser()
|
|
{
|
|
local app_name="$1"
|
|
local local_type="$2"
|
|
|
|
isNotice "Setting up Headscale for $app_name"
|
|
|
|
if [[ "$app_name" == "localhost" ]]; then
|
|
setupHeadscaleLocalhost $local_type;
|
|
fi
|
|
|
|
if [[ "$headscale_setup" == *"local"* ]]; then
|
|
setupHeadscaleLocal $app_name;
|
|
fi
|
|
|
|
if [[ "$headscale_setup" == *"remote"* ]]; then
|
|
if setupHeadscaleCheckRemote; then
|
|
setupHeadscaleRemote $app_name;
|
|
fi
|
|
fi
|
|
|
|
if [[ "$headscale_setup" == "" ]]; then
|
|
echo ""
|
|
isNotice "Headscale is no setup for $app_name."
|
|
isNotice "Please setup the config"
|
|
echo ""
|
|
isNotice "Press Enter to continue..."
|
|
read
|
|
fi
|
|
}
|