mirror of
https://github.com/openfaas/faas.git
synced 2025-06-16 04:06:47 +00:00
Minify example
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
parent
b4c5be54a9
commit
bed3ca97fa
@ -1,42 +1,14 @@
|
||||
server {
|
||||
listen 8080;
|
||||
|
||||
# location ~ ^/(/system|/ui)/ {
|
||||
|
||||
location /system {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_pass http://gateway:8080/;
|
||||
auth_basic "Restricted"; #For Basic Auth
|
||||
auth_basic_user_file /var/run/secrets/openfaas.htpasswd; #For Basic Auth
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_pass http://gateway:8080/;
|
||||
auth_basic "Restricted"; #For Basic Auth
|
||||
auth_basic_user_file /var/run/secrets/openfaas_htpasswd; #For Basic Auth
|
||||
}
|
||||
|
||||
location /ui {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_pass http://gateway:8080/;
|
||||
auth_basic "Restricted"; #For Basic Auth
|
||||
auth_basic_user_file /var/run/secrets/openfaas.htpasswd; #For Basic Auth
|
||||
}
|
||||
|
||||
location /async/function {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_pass http://gateway:8080/;
|
||||
}
|
||||
|
||||
|
||||
location /function {
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_pass http://gateway:8080/;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user