22 lines
606 B
Nginx Configuration File
22 lines
606 B
Nginx Configuration File
events { worker_connections 1024; }
|
|
http {
|
|
access_log off;
|
|
resolver 127.0.0.11 valid=1s ipv6=off;
|
|
server {
|
|
listen 8080;
|
|
client_max_body_size 16k;
|
|
proxy_connect_timeout 1s;
|
|
proxy_read_timeout 5s;
|
|
proxy_send_timeout 5s;
|
|
proxy_next_upstream error timeout http_502 http_503;
|
|
proxy_next_upstream_tries 2;
|
|
location / {
|
|
set $api http://api:8080;
|
|
proxy_pass $api;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Request-Id $request_id;
|
|
}
|
|
}
|
|
}
|