mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
The container docroot was spelled out in four shell invocations and twice in the nginx vhost, where both sides must agree or nginx serves an empty server block — the 403 this role hit. A single MAGENTO_ROOT now feeds both, and the install guard's mountpoint expression moves next to it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
19 lines
567 B
Django/Jinja
19 lines
567 B
Django/Jinja
upstream fastcgi_backend {
|
|
server {{ MAGENTO_PHP_HOST }}:{{ MAGENTO_PHP_PORT }};
|
|
}
|
|
|
|
server {
|
|
listen {{ MAGENTO_NGINX_PORT }};
|
|
|
|
set $MAGE_ROOT {{ MAGENTO_ROOT }};
|
|
|
|
{# Exception: the sample only buffers the main entry point, so /setup/ and
|
|
/update/ would fall back to nginx's 4k default and 502 on a big header. #}
|
|
fastcgi_buffer_size 64k;
|
|
fastcgi_buffers 8 128k;
|
|
|
|
{# Exception: glob, not a typo — a hard include errors on first boot,
|
|
before the bootstrap has copied nginx.conf into the volume. #}
|
|
include {{ MAGENTO_ROOT }}/nginx[.]conf;
|
|
}
|