mirror of
https://github.com/h44z/wg-portal
synced 2025-06-26 18:16:21 +00:00
- Added optional configurations `cert_file` and `key_file` to run web server with https Signed-off-by: Dmytro Bondar <git@bonddim.com>
15 lines
533 B
Go
15 lines
533 B
Go
package config
|
|
|
|
type WebConfig struct {
|
|
RequestLogging bool `yaml:"request_logging"`
|
|
ExternalUrl string `yaml:"external_url"`
|
|
ListeningAddress string `yaml:"listening_address"`
|
|
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"`
|
|
}
|