mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
The earlier attempt routed sessions through framework.session.handler_id with a redis DSN, which lazy-loads symfony/cache's RedisProxy whose dump() declaration is incompatible with the image's php-redis - a PHP fatal in every php container under swarm. Route sessions below Symfony instead: bake a conf.d ini registering phpredis's native session save handler with session.save_path taken from the REDIS_SESSION_TARGET env at runtime (php.ini env substitution, no secret in the image), emit that env with phpredis auth[user]/auth[pass] url-encoded query syntax from the engine lookup, and set framework.session.handler_id to null so Symfony defers to php.ini. Sessions are shared across replicas; cache and messenger paths stay untouched. All Dockerfile prose comments dropped. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
11 lines
197 B
YAML
11 lines
197 B
YAML
---
|
|
framework:
|
|
trusted_proxies: "%env(TRUSTED_PROXIES)%"
|
|
trusted_headers:
|
|
- x-forwarded-for
|
|
- x-forwarded-proto
|
|
- x-forwarded-host
|
|
- x-forwarded-port
|
|
session:
|
|
handler_id:
|