# Nginx Proxy Manager "Advanced" config for a LogShip ERP instance host. # Placeholders: __IP__ = instance LAN IP. Used by add-instance.sh. # Everything that today lives in the hand-pasted ISPConfig vhost, consolidated. client_max_body_size 100M; # label PDFs, OCR uploads, CSV imports large_client_header_buffers 4 32k; # big cookies (logship_user/role objects) proxy_buffer_size 64k; proxy_buffers 8 64k; proxy_read_timeout 300s; proxy_send_timeout 300s; # Server-sent events (…/stream routes) must not be buffered and need long reads. location ~ ^/api/.*/stream$ { proxy_pass http://__IP__:3001; proxy_http_version 1.1; proxy_set_header Connection ""; 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_buffering off; proxy_cache off; proxy_read_timeout 3600s; chunked_transfer_encoding off; } # Staff chat websocket: long-lived location /chat/ws { proxy_pass http://__IP__:3001; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; 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_read_timeout 3600s; }