proxy

package
v0.0.0-...-e66327c Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxy

func NewProxy(config *Config) (http.Handler, error)

NewProxy builds a SSO-protected multi-host handler with the specified configuration.

Types

type Backend

type Backend struct {
	Host            string                      `yaml:"host"`
	Upstream        []string                    `yaml:"upstream"`
	ServerName      string                      `yaml:"tls_server_name"`
	ClientTLSConfig *clientutil.TLSClientConfig `yaml:"client_tls"`

	AllowedGroups []string `yaml:"allowed_groups"`
}

Backend defines a single-host HTTP proxy to a set of upstream backends.

type Config

type Config struct {
	SessionAuthKey common.SessionAuthenticationKey `yaml:"session_auth_key"`
	SessionEncKey  common.SessionEncryptionKey     `yaml:"session_enc_key"`

	SSOLoginServerURL string `yaml:"sso_server_url"`
	SSOPublicKeyFile  string `yaml:"sso_public_key_file"`
	SSODomain         string `yaml:"sso_domain"`

	Backends []*Backend `yaml:"backends"`
}

Config for the proxy.

Jump to

Keyboard shortcuts

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