aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2015-01-12 10:59:48 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2015-01-12 10:59:48 +0100
commit624ab5cdf342e8ed75d8b6ca0dcd5603024e7ddb (patch)
tree34e91dd94f7b623cc27a5d875f5a476ddb08da80
parent1e835ef009eb060eea2fed5a0fa2081a04afd8a9 (diff)
ansible: Add report and handle plural forms.2015.1
* Make nginx handle plural forms for resources. * Add /report resource. Change-Id: Ic4d8aadea30d47bc34dd5e66c01c668b46d56224
-rw-r--r--ansible/roles/configure-nginx/templates/backend-nginx.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/configure-nginx/templates/backend-nginx.conf b/ansible/roles/configure-nginx/templates/backend-nginx.conf
index 472302e..1060376 100644
--- a/ansible/roles/configure-nginx/templates/backend-nginx.conf
+++ b/ansible/roles/configure-nginx/templates/backend-nginx.conf
@@ -30,7 +30,7 @@ server {
add_header Cache-Control "public";
}
- location ~* /(?:(count|job|defconfig|boot|token|batch|bisect|lab|version)(.*)(?!(\.(html?|json|css|js|png|jpe?g|ico))))$ {
+ location ~* /(?:(count|jobs?|defconfigs?|boots?|tokens?|batch|bisect|labs?|version|reports?)(.*)(?!(\.(html?|json|css|js|png|jpe?g|ico))))$ {
if (-f $document_root/maintenance.html) {
more_set_headers "Content-Type: application/json; charset=UTF-8";