autoland: update nginx location to also proxy /__lbheartbeat__ to tornado (bug 1336210). r?mars,smacleod draft
authorIsrael Madueme <imadueme@mozilla.com>
Thu, 02 Feb 2017 16:35:35 -0500
changeset 87 ad9b68faee0920258a2d5e1973f352e9d343f39c
parent 79 8b8e55d47c75f25dd7fc1677e401d74d552bc448
push id55
push userbmo:imadueme@mozilla.com
push dateThu, 02 Feb 2017 21:35:26 +0000
reviewersmars, smacleod
bugs1336210
autoland: update nginx location to also proxy /__lbheartbeat__ to tornado (bug 1336210). r?mars,smacleod This commit updates the regex to match either /api/.* or /__lbheartbeat__ will proxy the request to the tornado server. MozReview-Commit-ID: 29O4IQDh3Wq
autoland/docker/web/nginx-conf.d/default.conf
--- a/autoland/docker/web/nginx-conf.d/default.conf
+++ b/autoland/docker/web/nginx-conf.d/default.conf
@@ -2,13 +2,13 @@ server {
     listen       80;
     server_name  localhost;
 
     location / {
         proxy_pass  http://yarn:4000/;
     }
 
     # Proxy requests to the autoland backing service
-    location ~ /api/.* {
+    location ~ (/api/.*|__lbheartbeat__) {
         proxy_pass  http://autolandweb:9090;
     }
 }