nixos: services: paperless: fix formatting
This commit is contained in:
parent
0c5836bc56
commit
a997d36964
1 changed files with 16 additions and 16 deletions
|
|
@ -52,26 +52,26 @@ in
|
||||||
|
|
||||||
mediaDir = lib.mkIf (cfg.documentPath != null) cfg.documentPath;
|
mediaDir = lib.mkIf (cfg.documentPath != null) cfg.documentPath;
|
||||||
|
|
||||||
settings =
|
settings = {
|
||||||
{
|
# Use SSO
|
||||||
# Use SSO
|
PAPERLESS_ENABLE_HTTP_REMOTE_USER = true;
|
||||||
PAPERLESS_ENABLE_HTTP_REMOTE_USER = true;
|
PAPERLESS_ENABLE_HTTP_REMOTE_USER_API = true;
|
||||||
PAPERLESS_HTTP_REMOTE_USER_HEADER_NAME = "HTTP_X_USER";
|
PAPERLESS_HTTP_REMOTE_USER_HEADER_NAME = "HTTP_X_USER";
|
||||||
|
|
||||||
# Security settings
|
# Security settings
|
||||||
PAPERLESS_URL = "https://paperless.${config.networking.domain}";
|
PAPERLESS_URL = "https://paperless.${config.networking.domain}";
|
||||||
|
|
||||||
# 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