Files
larablog/deploy/nginx.conf
T
ak 263b98b218 Initial baseline: LaraBlog core with plugin commerce surface.
Captures the current working tree after theme slots, ArticleAccess, and the payment / paid-content plugins so subsequent work has a reviewable git history.
2026-08-12 01:15:38 +08:00

28 lines
737 B
Nginx Configuration File

server {
listen 80;
server_name larablog.test;
root /path/to/larablog/public;
index index.php;
# Local attachments disk (ATTACHMENTS_DRIVER=local); production should use S3/R2.
location /attachments-local/ {
alias /path/to/larablog/storage/app/attachments/;
access_log off;
}
# Legacy sablog pretty URLs (handled in Laravel routes/legacy.php as well)
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
}
location ~* /\.(?!well-known).* {
deny all;
}
}