feat: implement R4 production hardening
- Add configurable ingestion batch item limits - Improve client serialization and sanitization - Add graceful handling for corrupt GZIP partitions in data API - Expand admin session token scope - Update project documentation for R4 status
This commit is contained in:
1 parent
8132087085
commit
ae9b554189
59 files changed
+16879
-1074
No files matched your search
@@ -25,6 +25,15 @@ server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
# Preserve real external visitor IP when routed behind trusted reverse proxies / Docker bridges
|
||||
set_real_ip_from 127.0.0.1;
|
||||
set_real_ip_from 10.0.0.0/8;
|
||||
set_real_ip_from 172.16.0.0/12;
|
||||
set_real_ip_from 192.168.0.0/16;
|
||||
set_real_ip_from fc00::/7;
|
||||
real_ip_header X-Forwarded-For;
|
||||
real_ip_recursive on;
|
||||
|
||||
client_max_body_size 50M;
|
||||
|
||||
# Express + Socket.IO health endpoint on port 4000
|
||||
@@ -54,6 +63,22 @@ server {
|
||||
proxy_buffering off;
|
||||
}
|
||||
|
||||
# Admin Files Manager (CloudCmd + isolated Socket.IO) reverse proxy to port 4000
|
||||
location /vcon/files-engine {
|
||||
proxy_pass http://socketio_upstream;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-Host $forwarded_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 $forwarded_proto;
|
||||
proxy_read_timeout 86400s;
|
||||
proxy_send_timeout 86400s;
|
||||
proxy_buffering off;
|
||||
}
|
||||
|
||||
# Streaming CSV/JSON export endpoint on port 3000 (disable response buffering)
|
||||
location = /api/export {
|
||||
proxy_pass http://nextjs_upstream;
|
||||
|
||||
Reference in new issue
Block a user