Bot / nginx.conf
YYP0502's picture
Upload 2 files
6e96d5d verified
Raw History Blame Contribute Delete
1.04 kB
worker_processes 1;
pid /tmp/nginx.pid;
error_log /dev/stderr warn;
events { worker_connections 1024; }
http {
access_log off;
client_max_body_size 100m;
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 7860;
location = /mcp { add_header X-Space-Service home-assistant-mcp always; proxy_pass http://127.0.0.1:8000; include /etc/nginx/mcp-proxy.conf; }
location /mcp/ { add_header X-Space-Service home-assistant-mcp always; proxy_pass http://127.0.0.1:8000; include /etc/nginx/mcp-proxy.conf; }
location / {
proxy_pass http://127.0.0.1:8123;
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_read_timeout 3600s;
}
}
}