From e1a8ecf3fb1ecd7e3b0c6a52c882c51fbc88974a Mon Sep 17 00:00:00 2001 From: Alexis Hernandez Date: Sun, 19 May 2019 13:25:09 -0600 Subject: [PATCH] infra: Add dash support on the frontend --- infra/deployment/config/xsnexplorer.io | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/infra/deployment/config/xsnexplorer.io b/infra/deployment/config/xsnexplorer.io index 555ed5f..55c9075 100644 --- a/infra/deployment/config/xsnexplorer.io +++ b/infra/deployment/config/xsnexplorer.io @@ -42,6 +42,14 @@ server { proxy_pass http://10.136.96.184:9000; } + location /api/dash { + proxy_cache my_cache; + add_header X-Cache-Status $upstream_cache_status; + + rewrite ^/api/dash/(.*) /$1 break; + proxy_pass http://10.136.168.102:9000; + } + location /api/xsn { proxy_cache my_cache; add_header X-Cache-Status $upstream_cache_status;