fix: small nextcloud fixes #36

Merged
teutat3s merged 6 commits from feat/nextcloud into main 2023-10-29 19:52:16 +00:00
3 changed files with 43 additions and 3 deletions
Showing only changes of commit 8ad19f72fc - Show all commits

View file

@ -1,9 +1,20 @@
{ config, pkgs, ... }: {
config,
pkgs,
flake,
...
}:
{ {
age.secrets."nextcloud-secrets" = { age.secrets."nextcloud-secrets" = {
file = "${flake.self}/secrets/nextcloud-secrets.age"; file = "${flake.self}/secrets/nextcloud-secrets.age";
mode = "400"; mode = "400";
owner = config.services.mastodon.user; owner = "nextcloud";
};
age.secrets."nextcloud-admin-pass" = {
file = "${flake.self}/secrets/nextcloud-admin-pass.age";
mode = "400";
owner = "nextcloud";
}; };
services.nginx.virtualHosts."cloud.pub.solar" = { services.nginx.virtualHosts."cloud.pub.solar" = {
@ -18,7 +29,7 @@
enable = true; enable = true;
https = true; https = true;
secretFile = config.age.secrets."nextcloud-secrets".path; # secret secretFile = config.age.secrets."nextcloud-secrets".path; # secret
phpPackage = pkgs.php82; maxUploadSize = "1G";
configureRedis = true; configureRedis = true;
@ -28,6 +39,7 @@
config = { config = {
adminuser = "admin"; adminuser = "admin";
adminpassFile = config.age.secrets."nextcloud-admin-pass".path;
dbuser = "nextcloud"; dbuser = "nextcloud";
dbtype = "pgsql"; dbtype = "pgsql";
dbname = "nextcloud"; dbname = "nextcloud";

View file

@ -0,0 +1,27 @@
age-encryption.org/v1
-> ssh-ed25519 iDKjwg 1a8hvqTn2un3yxJkdltenSSfEhKMHxXAKlfSnD9vCWo
xOzDWr87QMnE9UgnNimz/C+5aKhspG38RQDhhRqg/EE
-> ssh-ed25519 uYcDNw Grc5lFL8+r+Evi3bDl5sCidZMZzLU1K8qiZ+Mhqc8gc
mu0L16Ar7H6ZGsSMGw9W9AwS+JusygM8fM6LMtMsCo4
-> ssh-rsa kFDS0A
nJnBVo6ArUYVRYUDRAPfBdxPPjCaOqM8fi+7LNLtThnyDzRm31Fgq/07Xy7ual2O
0k10QbXZv3nnhjW+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|<7C>!wá„iGÈÁ!¾e4¥Ùxc<78>

View file

@ -37,4 +37,5 @@ in {
"matrix-synapse-secret-config.yaml.age".publicKeys = nachtigallKeys ++ baseKeys; "matrix-synapse-secret-config.yaml.age".publicKeys = nachtigallKeys ++ baseKeys;
"nextcloud-secrets.age".publicKeys = nachtigallKeys ++ baseKeys; "nextcloud-secrets.age".publicKeys = nachtigallKeys ++ baseKeys;
"nextcloud-admin-pass.age".publicKeys = nachtigallKeys ++ baseKeys;
} }