feat: add complete nextcloud config without secrets

This commit is contained in:
Benjamin Bädorf 2023-10-28 16:53:40 +02:00 committed by b12f
parent 41c5f1797c
commit 422b1ba33e
Signed by: pub.solar gitea
GPG key ID: F0332B04B7054873

View file

@ -1,37 +0,0 @@
{ config, pkgs, ... }:
{
services.caddy.virtualHosts."cloud.pub.solar" = {
# logFormat = lib.mkForce ''
# output discard
# '';
extraConfig = ''
reverse_proxy :8080
'';
};
services.nginx.virtualHosts."localhost".listen = [ { addr = "127.0.0.1"; port = 8080; } ];
services.nextcloud = {
enable = true;
https = true;
secretFile = ""; # secret
notify_push = {
enable = true;
};
config = {
adminuser = "admin";
dbuser = "nextcloud";
dbtype = "pgsql";
dbname = "nextcloud";
dbtableprefix = "oc_";
trustedProxies = [
"cloud.pub.solar"
];
};
autoUpdateApps.enable = true;
database.createLocally = true;
};
}