heimdall: Update caddy configuration to respond with a body

This commit is contained in:
Erwin Boskma 2024-11-16 22:11:03 +01:00
parent 881bce810d
commit b5a9acda3d
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg
2 changed files with 9 additions and 3 deletions

View file

@ -41,7 +41,10 @@
"boskma.frl" = { "boskma.frl" = {
extraConfig = '' extraConfig = ''
error "Nothing to see here." 404 respond 404 {
body "Nothing to see here."
close
}
''; '';
}; };
}; };

View file

@ -40,9 +40,12 @@ in
} }
route { route {
reverse_proxy @public_or_allowed_remote ${config.services.keycloak.settings.http-host}:${toString config.services.keycloak.settings.http-port} reverse_proxy @public_or_allowed_remote ${config.services.keycloak.settings.http-host}:${toString config.services.keycloak.settings.http-port}
error "Nope." 403 respond 403 {
body "Nope."
close
}
} }
''; '';
}; };