quantum / docker /nginx.conf
harishaseebat92
QLBM: Multi_dirac Function Added
f21a3a4
worker_processes auto;
pid /tmp/nginx.pid;
error_log /tmp/nginx.error.log warn;
events {
worker_connections 1024;
}
http {
access_log /tmp/nginx.access.log;
client_body_temp_path /tmp/nginx/body;
proxy_temp_path /tmp/nginx/proxy;
fastcgi_temp_path /tmp/nginx/fastcgi;
uwsgi_temp_path /tmp/nginx/uwsgi;
scgi_temp_path /tmp/nginx/scgi;
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
# Increased timeouts for long-running quantum computations
keepalive_timeout 360000s;
proxy_connect_timeout 360000s;
proxy_read_timeout 360000s;
proxy_send_timeout 360000s;
send_timeout 360000s;
# Disable buffering for real-time updates
proxy_buffering off;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream app_root {
server 127.0.0.1:8700;
}
upstream app_em {
server 127.0.0.1:8701;
}
upstream app_qlbm {
server 127.0.0.1:8702;
}
server {
listen 7860;
server_name _;
location /em/ {
proxy_pass http://app_em/;
proxy_http_version 1.1;
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;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
# Timeouts for long-running quantum simulations
proxy_connect_timeout 360000s;
proxy_read_timeout 360000s;
proxy_send_timeout 360000s;
}
location /qlbm/ {
proxy_pass http://app_qlbm/;
proxy_http_version 1.1;
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;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
# Timeouts for long-running quantum simulations
proxy_connect_timeout 360000s;
proxy_read_timeout 360000s;
proxy_send_timeout 360000s;
}
location / {
proxy_pass http://app_root/;
proxy_http_version 1.1;
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;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
# Timeouts for long-running operations
proxy_connect_timeout 360000s;
proxy_read_timeout 360000s;
proxy_send_timeout 360000s;
}
}
}