Compare commits
3 commits
77839ab2ef
...
1dc65a37e7
| Author | SHA1 | Date | |
|---|---|---|---|
| 1dc65a37e7 | |||
| a997d36964 | |||
| 0c5836bc56 |
1 changed files with 18 additions and 20 deletions
|
|
@ -52,30 +52,28 @@ in
|
||||||
|
|
||||||
mediaDir = lib.mkIf (cfg.documentPath != null) cfg.documentPath;
|
mediaDir = lib.mkIf (cfg.documentPath != null) cfg.documentPath;
|
||||||
|
|
||||||
settings =
|
settings = {
|
||||||
let
|
# Use SSO
|
||||||
paperlessDomain = "paperless.${config.networking.domain}";
|
PAPERLESS_ENABLE_HTTP_REMOTE_USER = true;
|
||||||
in
|
PAPERLESS_ENABLE_HTTP_REMOTE_USER_API = true;
|
||||||
{
|
PAPERLESS_HTTP_REMOTE_USER_HEADER_NAME = "HTTP_X_USER";
|
||||||
# Use SSO
|
|
||||||
PAPERLESS_ENABLE_HTTP_REMOTE_USER = true;
|
|
||||||
PAPERLESS_HTTP_REMOTE_USER_HEADER_NAME = "HTTP_X_USER";
|
|
||||||
|
|
||||||
# Security settings
|
# Security settings
|
||||||
PAPERLESS_ALLOWED_HOSTS = paperlessDomain;
|
PAPERLESS_URL = "https://paperless.${config.networking.domain}";
|
||||||
PAPERLESS_CORS_ALLOWED_HOSTS = "https://${paperlessDomain}";
|
PAPERLESS_USE_X_FORWARD_HOST = true;
|
||||||
|
PAPERLESS_PROXY_SSL_HEADER = ''["HTTP_X_FORWARDED_PROTO", "https"]'';
|
||||||
|
|
||||||
# OCR settings
|
# OCR settings
|
||||||
PAPERLESS_OCR_LANGUAGE = "fra+eng";
|
PAPERLESS_OCR_LANGUAGE = "fra+eng";
|
||||||
|
|
||||||
# Workers
|
# Workers
|
||||||
PAPERLESS_TASK_WORKERS = 3;
|
PAPERLESS_TASK_WORKERS = 3;
|
||||||
PAPERLESS_THREADS_PER_WORKER = 4;
|
PAPERLESS_THREADS_PER_WORKER = 4;
|
||||||
|
|
||||||
# Misc
|
# Misc
|
||||||
PAPERLESS_TIME_ZONE = config.time.timeZone;
|
PAPERLESS_TIME_ZONE = config.time.timeZone;
|
||||||
PAPERLESS_ADMIN_USER = cfg.username;
|
PAPERLESS_ADMIN_USER = cfg.username;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Admin password
|
# Admin password
|
||||||
passwordFile = cfg.passwordFile;
|
passwordFile = cfg.passwordFile;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue