forgejo: redirect to /Tigor if not logged in

This commit is contained in:
Tigor Hutasuhut 2024-06-13 20:27:06 +07:00
parent 265b9c549e
commit e335d6e331

View file

@ -6,6 +6,11 @@ in
{ {
config = mkIf cfg.enable { config = mkIf cfg.enable {
services.caddy.virtualHosts."git.tigor.web.id".extraConfig = '' services.caddy.virtualHosts."git.tigor.web.id".extraConfig = ''
@home_not_login {
not header_regexp Cookie gitea_incredible
path /
}
redir @home_not_login /Tigor
reverse_proxy * unix//run/forgejo/forgejo.sock reverse_proxy * unix//run/forgejo/forgejo.sock
''; '';