mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-07-05 17:03:15 +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
|
@ -42,6 +42,15 @@ func Favicon() echo.HandlerFunc {
|
|||
}
|
||||
}
|
||||
|
||||
func Logo() echo.HandlerFunc {
|
||||
return func(c echo.Context) error {
|
||||
if logo, ok := os.LookupEnv(util.LogoFilePathEnvVar); ok {
|
||||
return c.File(logo)
|
||||
}
|
||||
return c.Redirect(http.StatusFound, util.BasePath+"/static/custom/img/logo.png")
|
||||
}
|
||||
}
|
||||
|
||||
// LoginPage handler
|
||||
func LoginPage() echo.HandlerFunc {
|
||||
return func(c echo.Context) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue