feat(deploy): Standalone-Compose mit Host-Netzwerk für LXC und Traefik auf anderem Server
- docker-compose.standalone.yml: Build und Betrieb im Host-Netzwerk (Docker in unprivilegiertem LXC hat kein NAT für Bridge-Netze), Dienste über 127.0.0.1, Postgres nur lokal - TRUST_PROXY akzeptiert die IP(s) des Reverse Proxys statt nur true/false - Doku: Traefik-Datei-Konfiguration, Proxmox-Firewall, Ressourcen Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d45d1821df
commit
9cb9531e78
5 files changed
+209
-6
No files matched your search
@@ -27,3 +27,15 @@ describe('config', () => {
|
||||
expect(c.sftp).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
describe('TRUST_PROXY', () => {
|
||||
const base = { DATABASE_URL: 'postgres://x', INGEST_HMAC_SECRET: 'x'.repeat(32) };
|
||||
it('accepts true/false', () => {
|
||||
expect(loadConfig({ ...base, TRUST_PROXY: 'true' }).TRUST_PROXY).toBe(true);
|
||||
expect(loadConfig({ ...base, TRUST_PROXY: 'false' }).TRUST_PROXY).toBe(false);
|
||||
});
|
||||
it('accepts the reverse proxy address(es), so only those may set X-Forwarded-For', () => {
|
||||
expect(loadConfig({ ...base, TRUST_PROXY: '172.16.10.20' }).TRUST_PROXY).toEqual(['172.16.10.20']);
|
||||
expect(loadConfig({ ...base, TRUST_PROXY: '172.16.10.20, 10.0.0.0/8' }).TRUST_PROXY).toEqual(['172.16.10.20', '10.0.0.0/8']);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user