commit | b5a5a92cd5d6129c662abd12faab2d872e274570 | [log] [tgz] |
---|---|---|
author | Ilya Kharin <ikharin@mirantis.com> | Thu Mar 16 11:59:59 2017 +0400 |
committer | Ilya Kharin <ikharin@mirantis.com> | Thu Mar 16 15:53:45 2017 +0400 |
tree | 04b15847c96e2c2479c3534eab447508d5d5c696 | |
parent | 9d36fbe418d5a1a5d21ec74d60d0cb4fbed3f2fa [diff] |
Add OPTIONS to handle health check requests Change-Id: I9db10ad2a1687833bac432ef9d31bff422c4086d
diff --git a/devops_portal/files/nginx.conf b/devops_portal/files/nginx.conf index 4dcf703..bb7878a 100644 --- a/devops_portal/files/nginx.conf +++ b/devops_portal/files/nginx.conf
@@ -33,6 +33,11 @@ application/x-javascript; location / { + if ($request_method = OPTIONS ) { + add_header Content-Length 0; + add_header Content-Type text/plain; + return 200; + } try_files $uri /index.html; }