forked from mtusi2026/mtusi2026lab3
feat: lab3 init
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user