Documentation
¶
Index ¶
- func CreateDefaultServer(config schema.Configuration, providers middlewares.Providers) (server *fasthttp.Server, listener net.Listener, err error)
- func CreateMetricsServer(config schema.TelemetryMetricsConfig) (server *fasthttp.Server, listener net.Listener, err error)
- func ServeTemplatedFile(publicDir, file string, opts *TemplatedFileOptions) middlewares.RequestHandler
- type TemplatedFileCommonData
- type TemplatedFileOptions
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.
Click to show internal directories.
Click to hide internal directories.