Update modules/server/containers/apps/nextcloud.nix

This commit is contained in:
2026-05-11 17:46:08 +02:00
committed by soraefir
parent f6f51597cd
commit f3b8feb50d

View File

@@ -18,7 +18,7 @@ in {
server = builder.mkContainer { server = builder.mkContainer {
subdomain = containerCfg.subdomain; subdomain = containerCfg.subdomain;
image = "nextcloud:${version}"; image = "nextcloud:${version}";
port = containerCfg.port; port = 8080;
ip = containerCfg.ip; ip = containerCfg.ip;
secret = name; secret = name;
extraEnv = { extraEnv = {
@@ -47,7 +47,7 @@ in {
"--tmpfs=/tmp:rw,noexec,nosuid,size=512m" "--tmpfs=/tmp:rw,noexec,nosuid,size=512m"
]; ];
overrides = { overrides = {
ports = if containerCfg.pubPort!=null && containerCfg.port!=null then [ "${toString containerCfg.pubPort}:${toString containerCfg.port}" ] else []; ports = if containerCfg.port!=null then [ "${toString containerCfg.port}:8080" ] else [];
volumes = [ volumes = [
"${serverCfg.dataPath}/nextcloud/www:/var/www/html" "${serverCfg.dataPath}/nextcloud/www:/var/www/html"
"${serverCfg.dataPath}/nextcloud/data:/var/www/html/data" "${serverCfg.dataPath}/nextcloud/data:/var/www/html/data"