fix: slice off trailing slash if present on headscale url
This commit is contained in:
parent
96ee1a5fc6
commit
47cf9b726f
@ -35,7 +35,8 @@ const oidcConfig = type({
|
|||||||
}).onDeepUndeclaredKey('reject');
|
}).onDeepUndeclaredKey('reject');
|
||||||
|
|
||||||
const headscaleConfig = type({
|
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?',
|
public_url: 'string.url?',
|
||||||
config_path: 'string?',
|
config_path: 'string?',
|
||||||
config_strict: stringToBool,
|
config_strict: stringToBool,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user