config

package
v0.0.0-...-285c3ee Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_WORKERS = 50000 // max 50k go-routines per listener
View Source
const PHP_FPM = "127.0.0.1:8000" // default FPM path

Variables

View Source
var (
	Muxs      map[string]http.Handler
	Langs     map[string]language.Matcher
	Overrides map[string]Override

	Verbose bool
	Webdir  string
)

Functions

This section is empty.

Types

type Override

type Override struct {
	Proxy           string // Reverse proxy to given http-address
	ExcludedDomains []string
	Lang            []string          // Homepage auto-redirected languages
	Admin           map[string]string // Admin user+pass
	Pprof           bool              // Enable Golang PProf-backend to CPU/memory usage
	DevMode         bool              // Only allow admin user+pass
	Authlist        map[string]bool   // IP Whitelist if devmode-on
	SiteType        string            // Site framework
	Ratelimit       bool              // Override (default on) ratelimiter on PHP-code

	SecretKey string // Secret key used for hashing queue's (needed to have queueing enabled)
}

Jump to

Keyboard shortcuts

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