2020-03-11 03:43:15 +00:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server;
|
|
|
|
|
2020-09-17 03:24:57 +00:00
|
|
|
access_log off;
|
2022-01-05 06:31:12 +00:00
|
|
|
client_max_body_size 64m;
|
|
|
|
error_log /dev/stdout info;
|
|
|
|
fastcgi_buffering off;
|
|
|
|
fastcgi_request_buffering off;
|
|
|
|
gzip_vary on;
|
|
|
|
gzip_min_length 10240;
|
|
|
|
gzip_proxied expired no-cache no-store private auth;
|
|
|
|
gzip_types text/plain text/css application/javascript;
|
2020-03-11 03:43:15 +00:00
|
|
|
index index.php index.html;
|
2020-03-11 22:12:58 +00:00
|
|
|
root /var/www/html/public;
|
2020-03-11 03:43:15 +00:00
|
|
|
server_tokens off;
|
|
|
|
|
|
|
|
set $my_https "off";
|
|
|
|
if ($http_x_forwarded_proto = "https") {
|
|
|
|
set $my_https "on";
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~ \.php$ {
|
|
|
|
try_files $uri =404;
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
|
|
fastcgi_index index.php;
|
2022-01-05 06:31:12 +00:00
|
|
|
|
2020-03-11 03:43:15 +00:00
|
|
|
include fastcgi_params;
|
2022-01-05 06:31:12 +00:00
|
|
|
|
|
|
|
fastcgi_param HTTPS $my_https;
|
|
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
2020-03-11 03:43:15 +00:00
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
fastcgi_param SERVER_NAME $host;
|
2022-01-05 06:31:12 +00:00
|
|
|
|
|
|
|
fastcgi_read_timeout 600s;
|
|
|
|
fastcgi_send_timeout 600s;
|
2020-03-11 03:43:15 +00:00
|
|
|
}
|
|
|
|
}
|