2021-03-25 21:24:03 -03:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name web;
|
|
|
|
index index.php;
|
2023-07-24 20:54:30 -04:00
|
|
|
error_log /logs/error.log;
|
|
|
|
access_log /logs/access.log;
|
2021-03-25 21:24:03 -03:00
|
|
|
root /code/public;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
try_files $uri /index.php$is_args$args;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~ \.php {
|
|
|
|
try_files $uri =404;
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
|
|
|
fastcgi_index index.php;
|
2022-03-08 11:00:36 -03:00
|
|
|
fastcgi_read_timeout 3600;
|
2021-03-25 21:24:03 -03:00
|
|
|
fastcgi_pass php:9000;
|
|
|
|
}
|
|
|
|
}
|