Fix sops APIKEY

This commit is contained in:
soraefir
2026-05-11 21:49:20 +02:00
parent 63fc0bde6e
commit 89ffc75db2
3 changed files with 8 additions and 5 deletions

View File

@@ -13,6 +13,7 @@ in {
extraEnv = {
"aliasgroup1" = "https://${serverCfg.containers.nextcloud.subdomain}.${serverCfg.hostDomain}";
"server_name" = "${containerCfg.subdomain}.${serverCfg.hostDomain}";
"username" = "collabora_user";
"VIRTUAL_HOST" = "${containerCfg.subdomain}.${serverCfg.hostDomain}";
"VIRTUAL_PORT" = "9980";
"VIRTUAL_PROTO" = "http";

View File

@@ -112,8 +112,10 @@ in {
trigger = "server";
script = pkgs.writeShellScript "setup" ''
# Define the command wrapper
EXEC="${pkgs.podman}/bin/podman --events-backend=none exec --env-file ${config.sops.secrets."CUSTOM".path} etherpad-server sh -c"
$EXEC "echo \"$APIKEY\" > ./APIKEY.txt"
EXEC="${pkgs.podman}/bin/podman --events-backend=none exec --env-file ${config.sops.secrets."ETHERPAD".path} etherpad-server sh -c"
$EXEC "echo \"\$APIKEY - $APIKEY\" "
$EXEC "echo \"\$APIKEY\" > ./APIKEY.txt"
'';
};