Documentation
¶
Overview ¶
Package traefik_host_path_rewrite is a Traefik Yaegi middleware that rewrites the request path from the Host header using a configurable template.
Dependencies are intentionally limited to the Go standard library: Yaegi (Traefik Plugin Catalog) cannot load packages that use //go:embed (e.g. golang.org/x/net/publicsuffix).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Template string `json:"template,omitempty"`
SubdomainMode string `json:"subdomainMode,omitempty"`
FallbackDomain string `json:"fallbackDomain,omitempty"`
}
Config holds the plugin configuration.
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates the default plugin configuration.
type HostPathRewrite ¶
type HostPathRewrite struct {
// contains filtered or unexported fields
}
HostPathRewrite is the middleware handler.
func (*HostPathRewrite) ServeHTTP ¶
func (d *HostPathRewrite) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.