wellrested/docker/nginx/site.conf

37 lines
782 B
Plaintext

server {
listen 80;
root /usr/local/src/wellrested/public;
index index.php index.html;
charset utf-8;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
# Front Controller
location / {
try_files $uri $uri/ /index.php?$args;
}
# Generated Code Coverage Report
location /coverage {
alias /usr/local/src/wellrested/coverage;
}
# Generated Documentation
location /docs {
alias /usr/local/src/wellrested/docs/build/html;
}
# PHP
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass php:9000;
fastcgi_index index.php;
fastcgi_buffers 8 8k;
fastcgi_buffer_size 16k;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME index.php;
}
}