mirror of
https://github.com/openfaas/faas.git
synced 2025-06-20 13:06:40 +00:00
Remove un-used RoutelessProxy
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
@ -3,7 +3,7 @@ services:
|
|||||||
gateway:
|
gateway:
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
image: openfaas/gateway:0.13.7-rc2
|
image: openfaas/gateway:0.13.7-rc4
|
||||||
networks:
|
networks:
|
||||||
- functions
|
- functions
|
||||||
environment:
|
environment:
|
||||||
@ -43,11 +43,13 @@ services:
|
|||||||
|
|
||||||
# auth service provide basic-auth plugin for system APIs
|
# auth service provide basic-auth plugin for system APIs
|
||||||
basic-auth-plugin:
|
basic-auth-plugin:
|
||||||
image: openfaas/basic-auth-plugin:0.1.0
|
image: openfaas/basic-auth-plugin:0.1.1
|
||||||
networks:
|
networks:
|
||||||
- functions
|
- functions
|
||||||
environment:
|
environment:
|
||||||
secret_mount_path: "/run/secrets/"
|
secret_mount_path: "/run/secrets/"
|
||||||
|
user_filename: "basic-auth-user"
|
||||||
|
pass_filename: "basic-auth-password"
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
placement:
|
||||||
constraints:
|
constraints:
|
||||||
|
@ -95,7 +95,6 @@ func main() {
|
|||||||
|
|
||||||
faasHandlers.Proxy = handlers.MakeForwardingProxyHandler(reverseProxy, functionNotifiers, functionURLResolver, functionURLTransformer, nil)
|
faasHandlers.Proxy = handlers.MakeForwardingProxyHandler(reverseProxy, functionNotifiers, functionURLResolver, functionURLTransformer, nil)
|
||||||
|
|
||||||
faasHandlers.RoutelessProxy = handlers.MakeForwardingProxyHandler(reverseProxy, forwardingNotifiers, urlResolver, nilURLTransformer, serviceAuthInjector)
|
|
||||||
faasHandlers.ListFunctions = handlers.MakeForwardingProxyHandler(reverseProxy, forwardingNotifiers, urlResolver, nilURLTransformer, serviceAuthInjector)
|
faasHandlers.ListFunctions = handlers.MakeForwardingProxyHandler(reverseProxy, forwardingNotifiers, urlResolver, nilURLTransformer, serviceAuthInjector)
|
||||||
faasHandlers.DeployFunction = handlers.MakeForwardingProxyHandler(reverseProxy, forwardingNotifiers, urlResolver, nilURLTransformer, serviceAuthInjector)
|
faasHandlers.DeployFunction = handlers.MakeForwardingProxyHandler(reverseProxy, forwardingNotifiers, urlResolver, nilURLTransformer, serviceAuthInjector)
|
||||||
faasHandlers.DeleteFunction = handlers.MakeForwardingProxyHandler(reverseProxy, forwardingNotifiers, urlResolver, nilURLTransformer, serviceAuthInjector)
|
faasHandlers.DeleteFunction = handlers.MakeForwardingProxyHandler(reverseProxy, forwardingNotifiers, urlResolver, nilURLTransformer, serviceAuthInjector)
|
||||||
|
@ -4,12 +4,14 @@ import "net/http"
|
|||||||
|
|
||||||
// HandlerSet can be initialized with handlers for binding to mux
|
// HandlerSet can be initialized with handlers for binding to mux
|
||||||
type HandlerSet struct {
|
type HandlerSet struct {
|
||||||
Proxy http.HandlerFunc
|
// Proxy invokes functions upstream
|
||||||
|
Proxy http.HandlerFunc
|
||||||
|
|
||||||
DeployFunction http.HandlerFunc
|
DeployFunction http.HandlerFunc
|
||||||
DeleteFunction http.HandlerFunc
|
DeleteFunction http.HandlerFunc
|
||||||
ListFunctions http.HandlerFunc
|
ListFunctions http.HandlerFunc
|
||||||
Alert http.HandlerFunc
|
Alert http.HandlerFunc
|
||||||
RoutelessProxy http.HandlerFunc
|
|
||||||
UpdateFunction http.HandlerFunc
|
UpdateFunction http.HandlerFunc
|
||||||
|
|
||||||
// QueryFunction - queries the metdata for a function
|
// QueryFunction - queries the metdata for a function
|
||||||
|
Reference in New Issue
Block a user