This commit is contained in:
parent
1a25b198ef
commit
781ce2d5e9
24 changed files with 610 additions and 505 deletions
|
@ -1,8 +1,11 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
let
|
||||
cfg = config.services.vm_nextcloud;
|
||||
in
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.services.vm_nextcloud;
|
||||
in {
|
||||
options.services.vm_nextcloud = {
|
||||
enable = lib.mkEnableOption "Enable minimal config";
|
||||
proxy_ip = lib.mkOption {
|
||||
|
@ -53,8 +56,8 @@ in
|
|||
"opcache.memory_consumption" = "512";
|
||||
};
|
||||
settings = {
|
||||
trusted_proxies = [ "${cfg.proxy_ip}" ];
|
||||
trusted_domains = [ "${cfg.proxy_ip}" ];
|
||||
trusted_proxies = ["${cfg.proxy_ip}"];
|
||||
trusted_domains = ["${cfg.proxy_ip}"];
|
||||
overwriteprotocol = "http";
|
||||
overwrite.cli.url = "http://${cfg.proxy_ip}/cloud/";
|
||||
"overwritehost" = "${cfg.proxy_ip}";
|
||||
|
@ -68,11 +71,11 @@ in
|
|||
dbuser = "nextcloud";
|
||||
dbtype = "pgsql";
|
||||
dbpassFile = "/run/secrets/nextcloud/nextcloud-dbpass";
|
||||
adminuser = "tbarnouin";
|
||||
adminuser = "tbarnouin";
|
||||
adminpassFile = "/run/secrets/nextcloud/nextcloud-adminpass";
|
||||
};
|
||||
};
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||
networking.firewall.allowedTCPPorts = [80];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue