Unverified Commit f126aa57 by Joseph Mulloy Committed by GitHub

Merge pull request #4690 from edx/jdmulloy/ops3164/studio_fake_heartbeat

Add fake heartbeat to CMS nginx config OPS-3164
parents 4f78d469 67454b32
......@@ -93,6 +93,12 @@ error_page {{ k }} {{ v }};
# No basic auth security on the heartbeat url, so that ELB can use it
location /heartbeat {
# If /edx/var/nginx/server-static/maintenance_heartbeat.txt exists serve an
# empty 200 so the instance stays in the load balancer to serve the
# maintenance page
if (-f /edx/var/nginx/server-static/maintenance_heartbeat.txt) {
return 200;
}
try_files $uri @proxy_to_cms_app;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment