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:
+3
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user