feat: allow a public headscale URL separate from the main one

This commit is contained in:
Aarnav Tale 2024-11-30 15:33:58 -05:00
parent 320dab1d4f
commit 712fc28683
No known key found for this signature in database
4 changed files with 19 additions and 2 deletions

View file

@ -102,7 +102,7 @@ export async function loader({ request }: LoaderFunctionArgs) {
return {
keys: preAuthKeys.flatMap(keys => keys.preAuthKeys),
users: users.users,
server: context.headscaleUrl,
server: context.headscalePublicUrl ?? context.headscaleUrl,
}
}