heimdall: Update caddy configuration to respond with a body
This commit is contained in:
parent
881bce810d
commit
b5a9acda3d
2 changed files with 9 additions and 3 deletions
|
@ -41,7 +41,10 @@
|
||||||
|
|
||||||
"boskma.frl" = {
|
"boskma.frl" = {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
error "Nothing to see here." 404
|
respond 404 {
|
||||||
|
body "Nothing to see here."
|
||||||
|
close
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue