From 0cdc1edf1991ce6792c39a1190a625ff084522e8 Mon Sep 17 00:00:00 2001 From: David Moreau Simard Date: Thu, 16 May 2019 08:56:13 -0400 Subject: [PATCH] We no longer need to redirect / to /api/v1/, there's an index now The API demo redirected / to /api/v1 for convenience but we no longer need to do it since there's a new index now. Change-Id: Ice4755a82ef4a3abb6b82aad94d812bdd4339677 --- playbooks/templates/api.demo.recordsansible.org.conf.j2 | 5 ----- 1 file changed, 5 deletions(-) diff --git a/playbooks/templates/api.demo.recordsansible.org.conf.j2 b/playbooks/templates/api.demo.recordsansible.org.conf.j2 index bf16372..d2078b6 100644 --- a/playbooks/templates/api.demo.recordsansible.org.conf.j2 +++ b/playbooks/templates/api.demo.recordsansible.org.conf.j2 @@ -24,11 +24,6 @@ server { ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; - # There's nothing at /, redirect it to the actual API for convenience - location / { - return 301 http://{{ ara_api_fqdn }}/api/v1/; - } - location /static { expires 7d; add_header Cache-Control "public";