You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
701 B
Plaintext
30 lines
701 B
Plaintext
upstream gateway_upstream {
|
|
server gateway-service:18086;
|
|
}
|
|
|
|
server {
|
|
listen 8086;
|
|
server_name _;
|
|
|
|
location = /nginx/health {
|
|
access_log off;
|
|
add_header Content-Type text/plain;
|
|
return 200 'ok';
|
|
}
|
|
|
|
location / {
|
|
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;
|
|
|
|
proxy_connect_timeout 3s;
|
|
proxy_send_timeout 30s;
|
|
proxy_read_timeout 30s;
|
|
|
|
proxy_pass http://gateway_upstream;
|
|
}
|
|
}
|