This repository has been archived on 2024-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
2021-12-16 22:28:06 +00:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server;
|
|
|
|
|
|
|
|
server_name _;
|
|
|
|
|
|
|
|
client_max_body_size 128M;
|
|
|
|
|
|
|
|
gzip on;
|
|
|
|
gzip_proxied any;
|
|
|
|
gzip_types text/plain text/xml text/css application/x-javascript;
|
|
|
|
gzip_vary on;
|
|
|
|
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
|
|
|
|
|
|
|
|
sendfile on;
|
|
|
|
sendfile_max_chunk 512k;
|
|
|
|
|
|
|
|
root /app/web;
|
|
|
|
|
|
|
|
access_log off;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
|
|
|
|
root /app/web;
|
|
|
|
index index.html index.htm index.php;
|
|
|
|
|
|
|
|
try_files $uri $uri/ /index.php?q=$uri&$args;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~ .php$ {
|
|
|
|
fastcgi_read_timeout 300;
|
2021-12-19 11:28:15 +00:00
|
|
|
fastcgi_pass ${STACK_NAME}_php:9000;
|
2021-12-16 22:28:06 +00:00
|
|
|
|
|
|
|
fastcgi_index index.php;
|
|
|
|
fastcgi_param SCRIPT_FILENAME /app/web/$fastcgi_script_name;
|
|
|
|
fastcgi_param PATH_INFO $fastcgi_script_name;
|
|
|
|
|
|
|
|
fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log";
|
|
|
|
fastcgi_buffers 16 16k;
|
|
|
|
fastcgi_buffer_size 32k;
|
|
|
|
|
|
|
|
include fastcgi_params;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|