Livrare LOT 1 - Didi
This commit is contained in:
commit
5380c3fc63
990 changed files with 133308 additions and 0 deletions
51
ai_platform/modules/web/deploy/nginx.conf
Normal file
51
ai_platform/modules/web/deploy/nginx.conf
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
upstream webapi {
|
||||
server didiAI-web-api:51100;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
# Request body limit
|
||||
client_max_body_size 1m;
|
||||
|
||||
# Timeouts
|
||||
proxy_connect_timeout 60s;
|
||||
proxy_send_timeout 120s;
|
||||
proxy_read_timeout 120s;
|
||||
|
||||
# Gzip compression
|
||||
gzip on;
|
||||
gzip_types application/json text/plain;
|
||||
gzip_min_length 256;
|
||||
gzip_vary on;
|
||||
|
||||
# Proxy buffering
|
||||
proxy_buffering on;
|
||||
proxy_buffer_size 4k;
|
||||
proxy_buffers 8 8k;
|
||||
|
||||
# Proxy settings
|
||||
proxy_http_version 1.1;
|
||||
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_set_header X-Request-ID $request_id;
|
||||
|
||||
# Health check endpoint
|
||||
location /health {
|
||||
proxy_pass http://webapi/health;
|
||||
add_header Cache-Control "no-cache";
|
||||
}
|
||||
|
||||
location /ready {
|
||||
proxy_pass http://webapi/ready;
|
||||
add_header Cache-Control "no-cache";
|
||||
}
|
||||
|
||||
# API endpoints
|
||||
location / {
|
||||
proxy_pass http://webapi;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue