Files
computer-playbook/roles/web-app-magento/templates/nginx-default.conf.j2
kevinveenbirkenbachandClaude Opus 5 61bf7a9ce3 refactor(web-app-magento): name the docroot and the install marker
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>
2026-08-07 06:56:01 +02:00

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;
}