backend/fastapi/nginx.conf

23 lines
535 B
Nginx Configuration File
Raw Normal View History

2024-12-06 05:12:28 +00:00
events {
worker_connections 2048;
}
http {
server {
listen 8097 ssl;
server_name eldsoft.com;
ssl_certificate /etc/nginx/ssl/eld.crt;
ssl_certificate_key /etc/nginx/ssl/eld.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_pass http://api:8098;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
}