This commit is contained in:
soraefir
2026-05-11 00:33:38 +02:00
parent d0ca9761d7
commit 31addeda66

View File

@@ -71,8 +71,8 @@ let
tag = etherpad_exe.version;
contents = with pkgs;[cacert tzdata bash coreutils curl settings ];
fakeRootCommands = ''
mkdir -p ./var/lib/etherpad
chown -R 1000:1000 ./var/lib/etherpad
mkdir -p ./opt
chmod 1777 ./opt
mkdir -p ./tmp
chmod 1777 ./tmp
'';
@@ -81,7 +81,10 @@ let
User = "1000:1000";
WorkingDir = "/var/lib/etherpad";
ExposedPorts = { "${toString containerCfg.port}/tcp" = {}; };
Env = [];
Env = [
"NODE_ENV=production"
"HOME=/opt"
];
};
};
@@ -120,7 +123,7 @@ in {
trigger = "server";
script = pkgs.writeShellScript "setup" ''
export $(sops -d ${config.sops.secrets."ETHERPAD".path} | xargs)
echo "The API key is $APIKEY" > output.txt
echo "The API key is $APIKEY" > /opt/APIKEY.txt
'';
};