config

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 3 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL