mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-07-25 19:54:06 +03:00
Add apikey
This commit is contained in:
parent
aadf099f50
commit
73cd5ae94d
5 changed files with 50 additions and 9 deletions
|
@ -19,6 +19,7 @@ var (
|
|||
SessionSecret []byte
|
||||
WgConfTemplate string
|
||||
BasePath string
|
||||
ApiKey string
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -49,6 +50,7 @@ const (
|
|||
DefaultClientExtraAllowedIpsEnvVar = "WGUI_DEFAULT_CLIENT_EXTRA_ALLOWED_IPS"
|
||||
DefaultClientUseServerDNSEnvVar = "WGUI_DEFAULT_CLIENT_USE_SERVER_DNS"
|
||||
DefaultClientEnableAfterCreationEnvVar = "WGUI_DEFAULT_CLIENT_ENABLE_AFTER_CREATION"
|
||||
DefaultApiKeyEnvVar = "WGUI_API_KEY"
|
||||
)
|
||||
|
||||
func ParseBasePath(basePath string) string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue