From 1463b9986a86d5ac91f0ad23a5e5b07ea60896b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Mon, 26 Aug 2024 15:48:54 +0200 Subject: [PATCH] feat(paperless): setup nginx proxy + letsencrypt --- acme.nix | 1 + nginx.nix | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/acme.nix b/acme.nix index b5b6828..14e6513 100644 --- a/acme.nix +++ b/acme.nix @@ -8,6 +8,7 @@ "git.sourcehut.${base-domain}" "docspell.${base-domain}" "teedy.${base-domain}" + "paperless.${base-domain}" ]; acceptTerms = true; defaults = { diff --git a/nginx.nix b/nginx.nix index be8f822..84658fa 100644 --- a/nginx.nix +++ b/nginx.nix @@ -33,6 +33,13 @@ proxyPass = "http://localhost:8080"; }; }; + "paperless.${base-domain}" = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://localhost:8000"; + }; + }; }; }; }