backend/fastapi/nginx.conf

25 lines
567 B
Nginx Configuration File
Raw Permalink Normal View History

2024-12-06 05:12:28 +00:00
events {
worker_connections 2048;
}
http {
2025-01-07 06:59:18 +00:00
charset utf-8;
2024-12-06 05:12:28 +00:00
server {
listen 8097 ssl;
server_name eldsoft.com;
2025-01-07 06:59:18 +00:00
ssl_certificate /etc/nginx/ssl/fullchain.pem; # full chain
ssl_certificate_key /etc/nginx/ssl/privkey.pem;
2024-12-06 05:12:28 +00:00
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_pass http://api:8098;
2025-01-07 06:59:18 +00:00
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2024-12-06 05:12:28 +00:00
}
}
}