feat: add panel configuration with API service and Caddy integration
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
parent
441b049e2b
commit
fe4d3f4432
4 changed files with 81 additions and 70 deletions
24
caddy.nix
24
caddy.nix
|
|
@ -22,29 +22,7 @@
|
|||
}
|
||||
reverse_proxy 192.168.100.11:80
|
||||
'';
|
||||
|
||||
virtualHosts."panel.srazka.com".extraConfig = ''
|
||||
forward_auth 127.0.0.1:9091 {
|
||||
uri /api/authz/forward-auth
|
||||
copy_headers Remote-User Remote-Groups Remote-Email Remote-Name
|
||||
}
|
||||
reverse_proxy 127.0.0.1:9911
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
systemd.paths."caddy-routes-reload" = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
pathConfig = {
|
||||
PathChanged = "/var/lib/containers/routes/routes.caddy";
|
||||
};
|
||||
};
|
||||
|
||||
systemd.services."caddy-routes-reload" = {
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.systemd}/bin/systemctl reload caddy.service";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue