fix(forgejo): add caddy error message

This commit is contained in:
Michael Thomas 2024-05-30 08:21:16 -04:00
parent f5ca1dd665
commit f09894d0dc

View File

@ -89,6 +89,11 @@ in {
})
(mkIf cfg.proxy {
services.caddy.virtualHosts."${forgejoDomain}".extraConfig = ''
handle_errors {
status 502
respond "This server is currently unavailable."
}
redir /user/login /user/oauth2/Keycloak?{query}
reverse_proxy http://${proxyIP}:${toString cfg.port}