From 06a349152f20a6e12f56cbb24c8e332acae33a7c Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Fri, 8 May 2026 23:54:40 -0600 Subject: [PATCH] fix(traefik): update remote config writing to use base64 encoding - Modified the `writeConfigRemote` function to encode the Traefik configuration in base64 before saving it to the remote YAML file. - This change ensures that the configuration is correctly handled and prevents potential issues with special characters in the config. --- packages/server/src/utils/traefik/application.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/server/src/utils/traefik/application.ts b/packages/server/src/utils/traefik/application.ts index c883ca44d..101574ed5 100644 --- a/packages/server/src/utils/traefik/application.ts +++ b/packages/server/src/utils/traefik/application.ts @@ -218,7 +218,11 @@ export const writeConfigRemote = async ( try { const { DYNAMIC_TRAEFIK_PATH } = paths(true); const configPath = path.join(DYNAMIC_TRAEFIK_PATH, `${appName}.yml`); - await execAsyncRemote(serverId, `echo '${traefikConfig}' > ${configPath}`); + const encoded = encodeBase64(traefikConfig); + await execAsyncRemote( + serverId, + `echo "${encoded}" | base64 -d > "${configPath}"`, + ); } catch (e) { console.error("Error saving the YAML config file:", e); }