server

package
v4.37.5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDefaultServer added in v4.36.0

func CreateDefaultServer(config schema.Configuration, providers middlewares.Providers) (server *fasthttp.Server, listener net.Listener, err error)

CreateDefaultServer Create Authelia's internal webserver with the given configuration and providers.

func CreateMetricsServer added in v4.36.0

func CreateMetricsServer(config schema.TelemetryMetricsConfig) (server *fasthttp.Server, listener net.Listener, err error)

CreateMetricsServer creates a metrics server.

func ServeTemplatedFile

func ServeTemplatedFile(publicDir, file string, opts *TemplatedFileOptions) middlewares.RequestHandler

ServeTemplatedFile serves a templated version of a specified file, this is utilised to pass information between the backend and frontend and generate a nonce to support a restrictive CSP while using material-ui.

Types

type TemplatedFileCommonData added in v4.37.4

type TemplatedFileCommonData struct {
	Base                   string
	BaseURL                string
	CSPNonce               string
	LogoOverride           string
	DuoSelfEnrollment      string
	RememberMe             string
	ResetPassword          string
	ResetPasswordCustomURL string
	Session                string
	Theme                  string
}

TemplatedFileCommonData is a struct which is used for many templated files.

type TemplatedFileOptions added in v4.37.4

type TemplatedFileOptions struct {
	AssetPath              string
	DuoSelfEnrollment      string
	RememberMe             string
	ResetPassword          string
	ResetPasswordCustomURL string
	Session                string
	Theme                  string
}

TemplatedFileOptions is a struct which is used for many templated files.

func NewTemplatedFileOptions added in v4.37.4

func NewTemplatedFileOptions(config *schema.Configuration) (opts *TemplatedFileOptions)

NewTemplatedFileOptions returns a new *TemplatedFileOptions.

func (*TemplatedFileOptions) CommonData added in v4.37.4

func (options *TemplatedFileOptions) CommonData(base, baseURL, nonce, logoOverride string) TemplatedFileCommonData

CommonData returns a TemplatedFileCommonData with the dynamic options.

Jump to

Keyboard shortcuts

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