sistem-akademik/nginx/siska.conf
Triono Putra 19522e74e7
All checks were successful
continuous-integration/drone/push Build is passing
oks
2025-06-05 07:44:21 +07:00

38 lines
865 B
Plaintext

server {
listen 80;
server_name sdncinere1.sch.id;
root /var/www/public;
index index.php index.html index.htm;
# Log
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
# Try static file, else fallback to Laravel
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# PHP-FPM
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass sistem-akademik-dev:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
# Deny access to .env and sensitive files
location ~ /\. {
deny all;
}
location ~* \.(log|git|env|ini|bak|sql)$ {
deny all;
}
# Increase upload size if needed
client_max_body_size 50M;
}