forked from mtusi2026/mtusi2026lab3
Provide resource profiles, persistent storage, parallel Nginx health checks and graceful restart hooks.
24 lines
522 B
Nginx Configuration File
24 lines
522 B
Nginx Configuration File
events {}
|
|
|
|
http {
|
|
upstream api {
|
|
least_conn;
|
|
zone api 64k;
|
|
include /etc/nginx/ready-upstreams.conf;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
|
|
location / {
|
|
proxy_pass http://api;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_connect_timeout 2s;
|
|
proxy_read_timeout 30s;
|
|
}
|
|
}
|
|
}
|