Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitModule ¶
func InitModule(cfg jconf.SubConfig) (rpmod rproxymod.ProxyModule, err error)
Types ¶
type Config ¶
type Config struct { RewriteHost bool // Rewrite Host header to match target URL RewriteForward bool // Rewrite incoming URI headers like "Destination" RewriteReverse bool // Rewrite outgoing URI headers like "Location" Headers ProxyHeadersConfig }
type ProxyHeadersConfig ¶
type ProxyHeadersConfig struct { XFwdFor bool `json:"X-Forwarded-For,omitempty"` XFwdHost bool `json:"X-Forwarded-Host,omitempty"` XFwdServer bool `json:"X-Forwarded-Server,omitempty"` XFwdProto bool `json:"X-Forwarded-Proto,omitempty"` Forwarded string `json:"Forwarded,omitempty"` // RFC7239 Via string `json:",omitempty"` }
Click to show internal directories.
Click to hide internal directories.