LaravelPublisher/docker/nginx/default.conf.template

27 lines
570 B
Plaintext
Raw Normal View History

2025-06-09 18:11:59 +08:00
server {
2025-06-10 10:21:36 +08:00
listen 80;
2025-06-09 18:11:59 +08:00
server_name ${NGINX_HOST};
root /var/www/html/public;
index index.php index.html;
2025-06-10 10:21:36 +08:00
client_max_body_size 100M;
2025-06-09 18:11:59 +08:00
access_log /var/log/nginx/access.log;
2025-06-10 10:21:36 +08:00
error_log /var/log/nginx/error.log;
2025-06-09 18:11:59 +08:00
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include fastcgi_params;
2025-06-10 10:21:36 +08:00
fastcgi_pass 127.0.0.1:9000;
2025-06-09 18:11:59 +08:00
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ /\.ht {
deny all;
}
}