Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configurations ¶
type Configurations struct {
Server ServerConfigurations
VirtualHosts []VirtualHostConfigurations
}
func Config ¶
func Config() (Configurations, error)
Load proxy configuration file from configs folder, relative to current working directory.
type ServerConfigurations ¶
type ServerConfigurations struct {
Port int
}
type VirtualHostConfigurations ¶
type VirtualHostConfigurations struct {
Hostname string // fqdn of the virtual host
Scheme string // request scheme
Origin string // origin which the request should be forwarded to
EnableCors bool // add CORS headers if true
SkipHeaders []string // array of headers which should be removed from origin response
}
Click to show internal directories.
Click to hide internal directories.