Add paperless

master
Yorick van Pelt 2023-10-30 10:32:26 +01:00
parent 6dec267bcf
commit a1232c38e2
Signed by: yorick
GPG Key ID: D8D3CC6D951384DE
2 changed files with 13 additions and 0 deletions

View File

@ -64,6 +64,10 @@
proxyPass = "http://[::1]:4001/";
# handles auth using arg
};
locations."/paperless/" = {
proxyPass = "http://127.0.0.1:${toString config.services.paperless.port}/";
extraConfig = oauth2Block;
};
locations."/media/" = {
root = "/var/mediashare";
};

View File

@ -38,8 +38,17 @@ in {
writeEnable = true;
chrootlocalUser = true;
allowWriteableChroot = true;
extraConfig = "local_umask=007";
userlist = [ "ads1600w" ];
};
# todo: back up this dir
services.paperless.enable = true;
services.paperless.extraConfig = {
# todo: PAPERLESS_ENABLE_HTTP_REMOTE_USER, PAPERLESS_LOGOUT_REDIRECT_URL
PAPERLESS_URL = "https://priv.yori.cc";
PAPERLESS_FORCE_SCRIPT_NAME = "/paperless";
PAPERLESS_STATIC_URL = "/paperless/static/";
};
users.users.paperless.extraGroups = [ "ads1600w" ];
};
}