Files
indexipro/deploy/nginx.example.conf

33 lines
1.0 KiB
Plaintext

# Example nginx site for IndexiPro behind a reverse proxy (TLS added by certbot --nginx).
server {
listen 80;
server_name inventory.example.com;
client_max_body_size 200m; # several phone photos per upload
proxy_read_timeout 300s;
proxy_send_timeout 300s;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
# AI connections: the key can be part of the URL, so keep these requests out of the access log.
location /mcp {
access_log off;
proxy_buffering off;
proxy_pass http://127.0.0.1:8095;
}
# OAuth discovery/login/token traffic must reach the application without bot challenges.
location ~ ^/(\.well-known/|authorize$|token$|register$|revoke$|oauth/) {
access_log off;
proxy_pass http://127.0.0.1:8095;
}
location / {
proxy_request_buffering off;
proxy_pass http://127.0.0.1:8095;
}
}