worker_processes 4;

events {
    worker_connections 1024;
}

http {
    include                 mime.types;
    sendfile                on;

    server {
        listen 80;
        root /var/www/html;

        location /public {
            add_header Cache-Control "public, max-age=31536000, immutable";
            try_files $uri =404;
        }

        location / {
            add_header Content-Security-Policy "base-uri 'none'";
            include fastcgi_params;
            fastcgi_pass php:9000;
            fastcgi_param SCRIPT_FILENAME $document_root/index.php;
        }
    }
}