Update: 2026-08-08 14:29:55
This commit is contained in:
@@ -106,3 +106,49 @@ server {
|
||||
proxy_buffering off;
|
||||
}
|
||||
}
|
||||
|
||||
# ── سوكيت الطعام — طلبات التوصيل ─────────────────────────────────
|
||||
# أُضيفت متأخّرة: وحدة الطعام نُشرت بحاويتها ومنفذها الداخلي (14040)
|
||||
# ونُسي طرفها الخارجي، فلم يكن على المضيف مستمع على 4040 إطلاقاً.
|
||||
# النتيجة `Socket Connect Error: timeout` في تطبيق السائق — نفس العرَض
|
||||
# الذي كُتب هذا الملف أصلاً لعلاجه في 2020/3030، وقد تكرّر حرفياً.
|
||||
#
|
||||
# الحاوية نفسها كانت سليمة طوال الوقت: curl على 127.0.0.1:14040 يردّ
|
||||
# 403 (رفض لغياب JWT) — أي أنها تعمل وتنتظر طلباً لا يصلها.
|
||||
server {
|
||||
listen 4040 ssl;
|
||||
listen [::]:4040 ssl;
|
||||
|
||||
server_name jordan-siro.intaleqapp.com;
|
||||
|
||||
ssl_certificate /etc/nginx/ssl-certificates/jordan-siro.intaleqapp.com.crt;
|
||||
ssl_certificate_key /etc/nginx/ssl-certificates/jordan-siro.intaleqapp.com.key;
|
||||
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
ssl_session_cache shared:SiroSock:10m;
|
||||
ssl_session_timeout 1d;
|
||||
|
||||
access_log off;
|
||||
error_log /var/log/nginx/siro-socket-food-error.log warn;
|
||||
|
||||
location / {
|
||||
# FOOD_SOCKET_PORT في docker/.env — الافتراضي 14040.
|
||||
proxy_pass http://127.0.0.1:14040;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $siro_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;
|
||||
|
||||
# وضع التوصيل يبقى مفتوحاً طوال مناوبة الكابتن — نفس مهل 2020.
|
||||
proxy_connect_timeout 10s;
|
||||
proxy_send_timeout 3600s;
|
||||
proxy_read_timeout 3600s;
|
||||
|
||||
proxy_buffering off;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user