Files
indexipro/deploy/nginx.example.conf
T
juli ac77df8a60 Security and robustness fixes from the code review
- Export no longer crashes the server on an unreadable photo (skips it)
- Login limits per username as well as per client; X-Forwarded-For only
  trusted from local/private proxies; constant-time unknown-user path
- Share links: internal fields always removed; values (incl. research
  notes) and notes/locations per link; filters, sort, search and CSV
  cannot reveal hidden fields; questions and stats details hidden
- Password reset/change signs other browsers out
- Comparables keep only http(s) links; CSV cells cannot start a formula
- Phone sign-in redirect stays on this site; browser security headers
- Items belong to accounts (not display names); unique display names
- Uploads go to disk, retried uploads are stored once (app 1.4.1)
- Daily database snapshots, expired-token cleanup, non-root container
2026-11-12 20:13:48 +01:00

27 lines
788 B
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;
}
location / {
proxy_request_buffering off;
proxy_pass http://127.0.0.1:8095;
}
}