paperless: add email creds to config

This commit is contained in:
Benjamin Yule Bädorf 2024-04-09 20:15:39 +02:00
parent cf485df2d2
commit 5891c59c4f
Signed by: b12f
GPG key ID: 729956E1124F8F26
3 changed files with 34 additions and 0 deletions

View file

@ -41,6 +41,12 @@ with lib; let
echo "PDF written to $pdf" echo "PDF written to $pdf"
''; '';
in { in {
age.secrets."paperless.env" = {
file = "${flake.self}/secrets/paperless.env.age";
mode = "400";
owner = "paperless";
};
################################# #################################
# Paperless service and proxy # Paperless service and proxy
################################# #################################
@ -72,9 +78,12 @@ in {
PAPERLESS_URL = "https://paperless.b12f.io"; PAPERLESS_URL = "https://paperless.b12f.io";
PAPERLESS_DISABLE_REGULAR_LOGIN = "True"; PAPERLESS_DISABLE_REGULAR_LOGIN = "True";
PAPERLESS_ENABLE_HTTP_REMOTE_USER = "True"; PAPERLESS_ENABLE_HTTP_REMOTE_USER = "True";
PAPERLESS_EMAIL_TASK_CRON = "*/2 * * * *";
}; };
}; };
systemd.services.paperless-web.serviceConfig.EnvironmentFile = [ config.age.secrets."paperless.env".path ];
################################# #################################
# Scanning # Scanning
################################# #################################

23
secrets/paperless.env.age Normal file
View file

@ -0,0 +1,23 @@
age-encryption.org/v1
-> ssh-ed25519 8bHz7g V83fHF4xfcKbAGvzobBAZEgqf+lgCTF/sj4yf4sjx1k
CkOTE/iiNrVQaGuHMjj04ve53113SQdmEkVKlUruKTM
-> ssh-rsa kFDS0A
cbM5X8HBvDDDhDVazfKnMmsoI3mR2ThUMROOAMrpInC7wQPkoOax18fJRRqkGRvq
itu2A+n0YC8jUcdFb23Qfcuin56ODORpXlDRIEm31Z3TKMtsMYXvDSb4T62jjccA
WNQdzQoHrOGWYE5j7u+6PvYkBZ1XiKIqknz6cOzFDaV5TAJes93q11x+3n+uYa7S
IPae6LI6yTlQYEx6Y34oPHtJk3o3ekwXd44KJjJZH2WFV5z+U8Kpjvdoeq2dW/Jm
9En5rFCOunsbmgRO1i5/WvLVmH88mDxQetBACJWShgzDYP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Ð'dQÐÀÑ×Ôªžìª\Ý

View file

@ -79,6 +79,8 @@ in {
"rclone-pie.conf.age".publicKeys = pieKeys ++ baseKeys; "rclone-pie.conf.age".publicKeys = pieKeys ++ baseKeys;
"restic-password.age".publicKeys = pieKeys ++ baseKeys; "restic-password.age".publicKeys = pieKeys ++ baseKeys;
"paperless.env.age".publicKeys = pieKeys ++ baseKeys;
"wg-private-chocolatebar.age".publicKeys = chocolatebarKeys ++ baseKeys; "wg-private-chocolatebar.age".publicKeys = chocolatebarKeys ++ baseKeys;
"wg-private-biolimo.age".publicKeys = biolimoKeys ++ baseKeys; "wg-private-biolimo.age".publicKeys = biolimoKeys ++ baseKeys;
"wg-private-stroopwafel.age".publicKeys = stroopwafelKeys ++ baseKeys; "wg-private-stroopwafel.age".publicKeys = stroopwafelKeys ++ baseKeys;