Update modules/server/containers/apps/etherpad.nix
This commit is contained in:
@@ -79,7 +79,7 @@ in {
|
||||
sops = true;
|
||||
db = true;
|
||||
paths = [{
|
||||
path="${serverCfg.configPath}/etherpad/";
|
||||
path="${serverCfg.path.config}/etherpad/";
|
||||
mode = "0444";
|
||||
}];
|
||||
|
||||
@@ -107,7 +107,7 @@ in {
|
||||
cmd = [ "--settings" "/etc/etherpad/settings.json" "--apikey" "/etc/etherpad/APIKEY.txt" ];
|
||||
volumes = [
|
||||
"${settings}:/etc/etherpad/settings.json"
|
||||
"${serverCfg.configPath}/etherpad/APIKEY.txt:/etc/etherpad/APIKEY.txt:ro"
|
||||
"${serverCfg.path.config}/etherpad/APIKEY.txt:/etc/etherpad/APIKEY.txt:ro"
|
||||
];
|
||||
};
|
||||
};
|
||||
@@ -117,8 +117,8 @@ in {
|
||||
trigger = "server";
|
||||
envFile = config.sops.secrets."ETHERPAD".path;
|
||||
script = pkgs.writeShellScript "setup" ''
|
||||
echo "$APIKEY" > ${serverCfg.configPath}/etherpad/APIKEY.txt
|
||||
chmod 444 ${serverCfg.configPath}/etherpad/APIKEY.txt
|
||||
echo "$APIKEY" > ${serverCfg.path.config}/etherpad/APIKEY.txt
|
||||
chmod 444 ${serverCfg.path.config}/etherpad/APIKEY.txt
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user