mirror of
https://git.nolog.cz/mdivecky/PID-odjezdy.git
synced 2025-01-31 05:03:35 +01:00
18 lines
No EOL
435 B
Text
18 lines
No EOL
435 B
Text
proxy_cache_path /tmp/cache levels=1:2 keys_zone=cache:10m max_size=500m inactive=60m use_temp_path=off;
|
|
|
|
server {
|
|
listen 80;
|
|
|
|
location / {
|
|
proxy_pass http://$FLASK_SERVER_ADDR;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
}
|
|
|
|
location /health-check {
|
|
add_header Content-Type text/plain;
|
|
return 200 "success";
|
|
}
|
|
|
|
} |