mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-07-06 17:13:13 +03:00
Additional configuration env variables
WGUI_BRAND_TEXT - The brand text of the web application WGUI_ACCENT_COLOR - The color of the interface sidebar WGUI_LOGO_FILE_PATH - The file path of the website logo WGUI_PAGE_TITLE_PREFIX - The HTML title prefix for all pages
This commit is contained in:
parent
b55543f424
commit
956496d840
7 changed files with 41 additions and 7 deletions
|
@ -19,6 +19,9 @@ var (
|
|||
SessionSecret []byte
|
||||
WgConfTemplate string
|
||||
BasePath string
|
||||
BrandText string
|
||||
AccentColor string
|
||||
PageTitlePrefix string
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -53,6 +56,10 @@ const (
|
|||
DefaultClientExtraAllowedIpsEnvVar = "WGUI_DEFAULT_CLIENT_EXTRA_ALLOWED_IPS"
|
||||
DefaultClientUseServerDNSEnvVar = "WGUI_DEFAULT_CLIENT_USE_SERVER_DNS"
|
||||
DefaultClientEnableAfterCreationEnvVar = "WGUI_DEFAULT_CLIENT_ENABLE_AFTER_CREATION"
|
||||
BrandTextEnvVar = "WGUI_BRAND_TEXT"
|
||||
AccentColorEnvVar = "WGUI_ACCENT_COLOR"
|
||||
PageTitlePrefixEnvVar = "WGUI_PAGE_TITLE_PREFIX"
|
||||
LogoFilePathEnvVar = "WGUI_LOGO_FILE_PATH"
|
||||
)
|
||||
|
||||
func ParseBasePath(basePath string) string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue