mirror of
https://github.com/h44z/wg-portal.git
synced 2025-09-15 07:11:15 +00:00
chore: get rid of static code warnings
This commit is contained in:
@@ -1,14 +1,25 @@
|
||||
package config
|
||||
|
||||
type WebConfig struct {
|
||||
RequestLogging bool `yaml:"request_logging"`
|
||||
ExternalUrl string `yaml:"external_url"`
|
||||
ListeningAddress string `yaml:"listening_address"`
|
||||
// RequestLogging enables logging of all HTTP requests.
|
||||
RequestLogging bool `yaml:"request_logging"`
|
||||
// ExternalUrl is the URL where a client can access WireGuard Portal.
|
||||
// This is used for the callback URL of the OAuth providers.
|
||||
ExternalUrl string `yaml:"external_url"`
|
||||
// ListeningAddress is the address and port for the web server.
|
||||
ListeningAddress string `yaml:"listening_address"`
|
||||
// SessionIdentifier is the session identifier for the web frontend.
|
||||
SessionIdentifier string `yaml:"session_identifier"`
|
||||
SessionSecret string `yaml:"session_secret"`
|
||||
CsrfSecret string `yaml:"csrf_secret"`
|
||||
SiteTitle string `yaml:"site_title"`
|
||||
SiteCompanyName string `yaml:"site_company_name"`
|
||||
CertFile string `yaml:"cert_file"`
|
||||
KeyFile string `yaml:"key_file"`
|
||||
// SessionSecret is the session secret for the web frontend.
|
||||
SessionSecret string `yaml:"session_secret"`
|
||||
// CsrfSecret is the CSRF secret.
|
||||
CsrfSecret string `yaml:"csrf_secret"`
|
||||
// SiteTitle is the title that is shown in the web frontend.
|
||||
SiteTitle string `yaml:"site_title"`
|
||||
// SiteCompanyName is the company name that is shown at the bottom of the web frontend.
|
||||
SiteCompanyName string `yaml:"site_company_name"`
|
||||
// CertFile is the path to the TLS certificate file.
|
||||
CertFile string `yaml:"cert_file"`
|
||||
// KeyFile is the path to the TLS certificate key file.
|
||||
KeyFile string `yaml:"key_file"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user