45 lines
1.1 KiB
Nginx Configuration File
45 lines
1.1 KiB
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name _;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# B2A discovery files
|
|
location = /llms.txt {
|
|
default_type text/plain;
|
|
}
|
|
|
|
location /.well-known/ {
|
|
default_type application/json;
|
|
}
|
|
|
|
location /.well-known/skills/ {
|
|
default_type text/plain;
|
|
}
|
|
|
|
# MCP proxy — routes /mcp to the MCP connector container
|
|
location /mcp {
|
|
proxy_pass http://mcp-connector:3001;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header Connection '';
|
|
proxy_http_version 1.1;
|
|
chunked_transfer_encoding off;
|
|
proxy_buffering off;
|
|
proxy_cache off;
|
|
}
|
|
|
|
# Backend API
|
|
location /api {
|
|
proxy_pass http://backend:8000;
|
|
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;
|
|
}
|
|
|
|
# SPA catch-all
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|