forward auth for guestbook

This commit is contained in:
Lewis Wynne 2026-04-10 22:35:39 +01:00
parent c5c32600ff
commit 961c711861
2 changed files with 16 additions and 10 deletions

20
flake.lock generated
View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"crane": { "crane": {
"locked": { "locked": {
"lastModified": 1775236976, "lastModified": 1775839657,
"narHash": "sha256-gCgX+AXN7K1gAIEqcLcZHxmC+QoZcwn9m6Z9r2Az+N8=", "narHash": "sha256-SPm9ck7jh3Un9nwPuMGbRU04UroFmOHjLP56T10MOeM=",
"owner": "ipetkov", "owner": "ipetkov",
"repo": "crane", "repo": "crane",
"rev": "6c23998526351a53ce734f0ac84940da988ccef1", "rev": "7cf72d978629469c4bd4206b95c402514c1f6000",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -40,11 +40,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1775788654, "lastModified": 1775856841,
"narHash": "sha256-vMZIDlF//N0TVEg0jJR5hKtInIkBTbnX+RG4MJv5Dpw=", "narHash": "sha256-wNR1kmbcgBtUaXmP8HIwuyiF1YQQ8twDWfjet9LSe5U=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "e445f8631b22d052cbd69ac59c6490cdf540ee2c", "rev": "ae3bd23e4b2e8dd4d3cb939ff13ac300660863e0",
"revCount": 67, "revCount": 101,
"type": "git", "type": "git",
"url": "https://git.ily.rs/lew/guestbook" "url": "https://git.ily.rs/lew/guestbook"
}, },
@ -55,11 +55,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1775763530, "lastModified": 1775793324,
"narHash": "sha256-BuTK9z1QEwWPOIakQ1gCN4pa4VwVJpfptYCviy2uOGc=", "narHash": "sha256-omax7atcZbol+6HJ2RLpP+ZCFcPa5bZ65Hn71RufeWQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b0188973b4b2a5b6bdba8b65381d6cd09a533da0", "rev": "9d29d5f667d7467f98efc31881e824fa586c927e",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -12,6 +12,12 @@
caddy = { caddy = {
enable = true; enable = true;
domain = "g.ily.rs"; domain = "g.ily.rs";
forwardAuth = {
enable = true;
address = "localhost:3002";
uri = "/api/auth/caddy";
copyHeaders = [ "Remote-User" "Remote-Name" "Remote-Email" "Remote-Groups" ];
};
}; };
features = { features = {