Files
AFC-Demo/deploy/nginx/nginx.conf
T

30 lines
821 B
Nginx Configuration File
Raw Normal View History

2025-10-27 12:09:32 +01:00
user nginx;
2025-10-23 12:22:27 +02:00
worker_processes auto;
2025-10-27 12:09:32 +01:00
# Send logs to container fds (works regardless of privileges)
error_log /proc/self/fd/2 warn;
pid /run/nginx/nginx.pid;
2025-10-23 12:22:27 +02:00
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
2025-10-27 12:09:32 +01:00
access_log /proc/self/fd/1 main;
# (No extra error_log here; the top-level one above is enough)
2025-10-23 12:22:27 +02:00
sendfile on;
keepalive_timeout 65;
2025-10-27 12:09:32 +01:00
# Include vhosts (your Laravel server block lives in one of these)
2025-10-23 12:22:27 +02:00
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/http.d/*.conf;
}