Commit f2a2701
5402: Align nginx image env-var contract
Finalize the nginx image's operator-facing env-var surface so the
compose side has a single name per concept:
NGINX_FPM_SERVICE=os2display (host only — was host:port combined)
NGINX_FPM_PORT=9000 (new — was embedded in NGINX_FPM_SERVICE)
NGINX_PORT=8080 (unchanged)
NGINX_MAX_BODY_SIZE=140m (was 10m)
NGINX_SET_REAL_IP_FROM=172.16.0.0/12 (was 172.17.0.0/16)
The /16 → /12 widening covers the full RFC1918 docker bridge range
(172.16-172.31), so multi-network compose stacks no longer need to
override the default. The 140m upload cap matches the planned
PHP_POST_MAX_SIZE / NGINX_MAX_BODY_SIZE alignment for media uploads.
The production template's upstream block now references
${NGINX_FPM_SERVICE}:${NGINX_FPM_PORT} explicitly.
The dev compose stack uses its own template under .docker/templates/
and is unaffected by this change.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c49aac4 commit f2a2701
3 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
0 commit comments