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;