From a602201eb253ee297f51b605881f42c7b71e4768 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 19 Sep 2021 16:48:05 +0200 Subject: l domsen: set nextcloud pw via krebs.secret --- lass/2configs/websites/domsen.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lass/2configs/websites/domsen.nix b/lass/2configs/websites/domsen.nix index 5da4b0ae2..453ecff8c 100644 --- a/lass/2configs/websites/domsen.nix +++ b/lass/2configs/websites/domsen.nix @@ -89,12 +89,18 @@ in { file_uploads = on ''; + krebs.secret.files.nextcloud_pw = { + path = "/run/nextcloud.pw"; + owner.name = "nextcloud"; + group-name = "nextcloud"; + source-path = toString + "/nextcloud_pw"; + }; services.nextcloud = { enable = true; hostName = "o.xanf.org"; package = pkgs.nextcloud20; config = { - adminpassFile = toString + "/nextcloud_pw"; + adminpassFile = "/run/nextcloud.pw"; overwriteProtocol = "https"; }; https = true; -- cgit v1.2.3