server { listen 80; server_name localhost; index index.php index.html; error_log /dev/stdout info; access_log /dev/stderr; root /var/www/public; client_max_body_size 50m; location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass app:9000; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; } # location /files/ { # rewrite ^/files/(.*)$ /$1 break; # proxy_set_header X-Real-IP $remote_addr; # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # proxy_set_header X-Forwarded-Proto $scheme; # proxy_set_header Host $http_host; # # proxy_connect_timeout 300; # # Default is HTTP/1, keepalive is only enabled in HTTP/1.1 # proxy_http_version 1.1; # proxy_set_header Connection ""; # chunked_transfer_encoding off; # # proxy_pass http://minio:9000; # } location / { root /var/frontend; index index.php; try_files $uri $uri/ /index.php?$query_string; } # location /api { # try_files $uri $uri/ /index.php?$query_string; # gzip_static on; # } }