working caddy config

This commit is contained in:
TheWanderingCrow 2025-12-05 10:04:29 -05:00
parent ae3e294a81
commit 3639db543b
3 changed files with 59 additions and 5 deletions

View file

@ -247,7 +247,17 @@ in
services.caddy = {
enable = true;
virtualHosts."frigate.wanderingcrow.net".extraConfig = ''
reverse_proxy http://10.88.0.10:8971
@auth {
path /caddy-security/*
}
route @auth {
authenticate with myportal
}
route /* {
authorize with mypolicy
reverse_proxy http://10.88.0.10:8971
}
'';
};
}