mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-10 17:34:05 -05:00
working caddy config
This commit is contained in:
parent
ae3e294a81
commit
3639db543b
3 changed files with 59 additions and 5 deletions
|
|
@ -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
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue