mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 08:46:48 +00:00
Enable sync/async route to be pass-through without auth
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
parent
7a133e0605
commit
5832d1415e
@ -1,7 +1,18 @@
|
|||||||
server {
|
server {
|
||||||
listen 8080;
|
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 / {
|
location / {
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user