worker_processes auto;
pid /run/nginx.pid;

events {
    worker_connections 1024;
}

http {
    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    access_log /dev/stdout;
    error_log /dev/stderr warn;

    sendfile on;
    keepalive_timeout 65;
    client_max_body_size 64m;

    gzip on;
    gzip_types application/json application/javascript application/xml text/css text/plain;

    server {
        listen 80 default_server;
        server_name _;
        root /var/www/html;
        index index.php;

        location / {
            include fastcgi_params;
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index index.php;
            fastcgi_read_timeout 60s;
            fastcgi_param SCRIPT_FILENAME $document_root/index.php;
            fastcgi_param SCRIPT_NAME /index.php;
            fastcgi_param X_REQUEST_ID $http_x_request_id;
        }

        location ~ /\.(?!well-known) {
            deny all;
        }
    }
}
