Make the compose file work with older docker-compose

List the variables instead of an optional env_file; the proxy treats empty
variables as unset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 21:46:45 +02:00
co-authored by Claude Opus 5.5
parent 5159d8a518
commit e649062d67
3 changed files with 24 additions and 4 deletions
+3 -1
View File
@@ -55,7 +55,9 @@ export function parseServers(list: string): AllowedServer[] {
});
}
export function configFromEnv(env: NodeJS.ProcessEnv): ProxyConfig {
export function configFromEnv(source: NodeJS.ProcessEnv): ProxyConfig {
// A variable set to nothing counts as not set (docker-compose passes unset ones on that way)
const env = Object.fromEntries(Object.entries(source).filter(([, v]) => v !== '')) as NodeJS.ProcessEnv;
const on = (v?: string) => v === '1' || v === 'true';
return {
...defaults,