From 5832d1415e4c20f1c4740c485b543660ac656b53 Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Sat, 28 Oct 2017 15:28:43 +0100 Subject: [PATCH] Enable sync/async route to be pass-through without auth Signed-off-by: Alex Ellis --- contrib/nginx/gateway.conf | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/contrib/nginx/gateway.conf b/contrib/nginx/gateway.conf index 2618c432..b4443a40 100644 --- a/contrib/nginx/gateway.conf +++ b/contrib/nginx/gateway.conf @@ -1,7 +1,18 @@ server { listen 8080; - + location /async-function/ { + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Host $http_host; + proxy_pass http://gateway:8080/async-function/; + } + + location /function/ { + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header Host $http_host; + proxy_pass http://gateway:8080/function/; + } + location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $http_host;