Beautiful Open-Source Form Builder
worker_processes auto;
pid /tmp/nginx.pid;
error_log /dev/stderr warn;
events { worker_connections 1024; }
http {
include /etc/nginx/mime.types;
access_log /dev/stdout;
client_body_temp_path /tmp/nginx-body;
fastcgi_temp_path /tmp/nginx-fastcgi;
proxy_temp_path /tmp/nginx-proxy;
uwsgi_temp_path /tmp/nginx-uwsgi;
scgi_temp_path /tmp/nginx-scgi;
server {
listen 8080;
root /app/public;
index index.php;
server_tokens off;
client_max_body_size 100m;
location = /healthz {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /opt/opnform/health.php;
}
location / { try_files $uri /index.php?$query_string; }
location = /index.php {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /app/public/index.php;
fastcgi_read_timeout 120s;
}
location ~ \.php$ { return 404; }
location ~ /\. { deny all; }
}
}