diff --git a/phpdocker/nginx/nginx.conf b/phpdocker/nginx/nginx.conf index eba6cbb..cdd98db 100644 --- a/phpdocker/nginx/nginx.conf +++ b/phpdocker/nginx/nginx.conf @@ -53,6 +53,24 @@ server { add_header Cache-Control "public, immutable"; } + location ~ ^/api/glossaries/dump/?$ { + gzip on; + gzip_vary on; + gzip_proxied any; + gzip_comp_level 5; + gzip_min_length 256; + gzip_types application/json; + + fastcgi_pass phpupstream; + fastcgi_index index.php; + fastcgi_read_timeout 600s; + fastcgi_param SCRIPT_FILENAME $document_root/index.php; + fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log"; + fastcgi_buffers 16 16k; + fastcgi_buffer_size 32k; + include fastcgi_params; + } + # try to serve file directly, fallback to index.php location / { try_files $uri /index.php$is_args$args;