Enable sync/async route to be pass-through without auth

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis 2017-10-28 15:28:43 +01:00
parent 7a133e0605
commit 5832d1415e

View File

@ -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;