Add open-webui and paperless.

This commit is contained in:
Nolan Darilek 2025-03-10 11:31:26 -05:00
parent 7a2f4a00f2
commit f29bbe2415
4 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{
services = {
paperless = {
enable = true;
settings = {
PAPERLESS_ENABLE_HTTP_REMOTE_USER = true;
PAPERLESS_ENABLE_HTTP_REMOTE_USER_API = true;
PAPERLESS_LOGOUT_REDIRECT_URL = "https://auth.tailc50184.ts.net/logout";
PAPERLESS_OCR_USER_ARGS = {
"invalidate_digital_signatures" = true;
};
};
};
caddy.virtualHosts."paperless.tailc50184.ts.net".extraConfig = ''
bind tailscale/paperless
forward_auth localhost:9091 {
uri /api/authz/forward-auth
copy_headers Remote-User
}
reverse_proxy localhost:28981
'';
};
}