Add paperless
parent
6dec267bcf
commit
a1232c38e2
|
@ -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";
|
||||
};
|
||||
|
|
|
@ -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" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue