Files

30 lines
843 B
Nginx Configuration File

pid /tmp/nginx.pid;
error_log /dev/stderr notice;
events {}
http {
access_log /dev/stdout;
client_body_temp_path /tmp/client_temp;
proxy_temp_path /tmp/proxy_temp;
fastcgi_temp_path /tmp/fastcgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
scgi_temp_path /tmp/scgi_temp;
server {
listen 8080;
location / {
if (-f /fixture/gate/closed) { return 503 "maintenance\n"; }
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /fixture/app/current/public/index.php;
fastcgi_pass php:9000;
}
}
server {
listen 127.0.0.1:8081;
location / {
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /fixture/app/current/public/index.php;
fastcgi_pass php:9000;
}
}
}