aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2015-03-03 14:39:10 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2015-03-03 14:39:10 +0100
commitd2aa6ded2a9b039735a4205bd9f4e48c47b7b212 (patch)
treec832ba5a56357fd651edf1893d36a30667c4a0c0
parent19c7df905705b7ce8d19cdeef9c08766390948ef (diff)
ansible: Add schema location to nginx config.
Change-Id: I7cc375355bf2e2a4307694d549b75aba277bc9b8
-rw-r--r--ansible/roles/configure-nginx/templates/backend-nginx.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/ansible/roles/configure-nginx/templates/backend-nginx.conf b/ansible/roles/configure-nginx/templates/backend-nginx.conf
index 3abecb6..2ba4586 100644
--- a/ansible/roles/configure-nginx/templates/backend-nginx.conf
+++ b/ansible/roles/configure-nginx/templates/backend-nginx.conf
@@ -19,6 +19,13 @@ server {
index index.html;
}
+ location /schema {
+ alias {{ web_root }}/{{ hostname }}/schema/;
+
+ fancyindex on;
+ fancyindex_exact_size off;
+ }
+
error_page 503 @maintenance;
location @maintenance {
rewrite ^(.*)$ /maintenance.html break;