32 lines
883 B
Plaintext
32 lines
883 B
Plaintext
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /var/www/html/public;
|
|
index index.php;
|
|
|
|
client_max_body_size 64m;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_pass app:9000;
|
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
|
include fastcgi_params;
|
|
set $forwarded_proto $http_x_forwarded_proto;
|
|
if ($forwarded_proto = "") {
|
|
set $forwarded_proto $scheme;
|
|
}
|
|
fastcgi_param HTTP_X_FORWARDED_PROTO $forwarded_proto;
|
|
fastcgi_param HTTP_X_FORWARDED_HOST $http_x_forwarded_host;
|
|
fastcgi_param HTTP_X_FORWARDED_PORT $http_x_forwarded_port;
|
|
fastcgi_param HTTP_X_FORWARDED_FOR $proxy_add_x_forwarded_for;
|
|
fastcgi_read_timeout 120s;
|
|
}
|
|
|
|
location ~ /\.(?!well-known) {
|
|
deny all;
|
|
}
|
|
}
|