Update modules/server/containers/apps/nextcloud.nix
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user