This commit is contained in:
+7
-7
@@ -39,8 +39,8 @@ http {
|
||||
limit_req_zone $binary_remote_addr zone=general:10m rate=100r/s;
|
||||
|
||||
# Upstream to Next.js app
|
||||
upstream enflow_app {
|
||||
server enflow-app:3000;
|
||||
upstream cirux_app {
|
||||
server cirux-app:3000;
|
||||
}
|
||||
|
||||
# ─── HTTP → HTTPS Redirect ───────────────────────────────────────────────
|
||||
@@ -83,7 +83,7 @@ http {
|
||||
# Proxy to Next.js
|
||||
location / {
|
||||
limit_req zone=general burst=50 nodelay;
|
||||
proxy_pass http://enflow_app;
|
||||
proxy_pass http://cirux_app;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
@@ -98,7 +98,7 @@ http {
|
||||
# API routes with stricter rate limiting
|
||||
location /api/ {
|
||||
limit_req zone=api burst=20 nodelay;
|
||||
proxy_pass http://enflow_app;
|
||||
proxy_pass http://cirux_app;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
@@ -108,20 +108,20 @@ http {
|
||||
|
||||
# Static files caching
|
||||
location /_next/static/ {
|
||||
proxy_pass http://enflow_app;
|
||||
proxy_pass http://cirux_app;
|
||||
proxy_cache_valid 200 365d;
|
||||
add_header Cache-Control "public, immutable";
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
proxy_pass http://enflow_app;
|
||||
proxy_pass http://cirux_app;
|
||||
proxy_cache_valid 200 365d;
|
||||
add_header Cache-Control "public, immutable";
|
||||
}
|
||||
|
||||
# WebSocket support for Supabase Realtime
|
||||
location /realtime/ {
|
||||
proxy_pass http://enflow_app;
|
||||
proxy_pass http://cirux_app;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
Reference in New Issue
Block a user