fix: slice off trailing slash if present on headscale url

This commit is contained in:
Aarnav Tale 2025-03-17 16:47:27 -04:00
parent 7741ab88bf
commit 43e06987ad
No known key found for this signature in database

View File

@ -35,7 +35,8 @@ const oidcConfig = type({
}).onDeepUndeclaredKey('reject');
const headscaleConfig = type({
url: 'string.url',
url: type('string.url').pipe((v) => (v.endsWith('/') ? v.slice(0, -1) : v)),
tls_cert_path: 'string?',
public_url: 'string.url?',
config_path: 'string?',
config_strict: stringToBool,