Cybersecurity-Projects/PROJECTS/advanced/ai-threat-detection/dev-log/nginx.conf

29 lines
597 B
Nginx Configuration File

# ©AngelaMos | 2026
# nginx.conf
events {
worker_connections 64;
}
http {
access_log /var/log/nginx/access.log combined;
error_log /var/log/nginx/error.log warn;
upstream target_app {
server app:8000;
}
server {
listen 80;
server_name _;
location / {
proxy_pass http://target_app;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}