forked from pub-solar/infra
feat: nextcloud initial commit
This commit is contained in:
parent
0fa32ec92f
commit
db77fcc378
|
@ -14,6 +14,7 @@
|
|||
./apps/keycloak.nix
|
||||
./apps/mailman.nix
|
||||
./apps/mastodon.nix
|
||||
./apps/nextcloud.nix
|
||||
./apps/nginx-mastodon.nix
|
||||
./apps/nginx-mastodon-files.nix
|
||||
./apps/nginx-website.nix
|
||||
|
|
37
hosts/nachtigall/nextcloud.nix
Normal file
37
hosts/nachtigall/nextcloud.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{ 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue