Add open-webui and paperless.
This commit is contained in:
parent
7a2f4a00f2
commit
f29bbe2415
4 changed files with 61 additions and 0 deletions
24
hosts/hub/apps/paperless.nix
Normal file
24
hosts/hub/apps/paperless.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue