Add new debug option for http
This commit is contained in:
parent
0ba34fe80f
commit
0290a42d07
39 changed files with 293 additions and 189 deletions
|
|
@ -39,6 +39,11 @@ http:
|
|||
# This email address can be configured here.
|
||||
certbot_email: null
|
||||
|
||||
# Debug determines if error messages should be written as html pages with stack traces to http clients.
|
||||
# This potentially exposes sensitive information and may cause certain API responses to be of content type 'text/html' unexpectedly.
|
||||
# It is not recommended to use this on production systems.
|
||||
debug: null
|
||||
|
||||
# Serve the panel also on the toplevel domain, and not only on the "panel" domain.
|
||||
# Enabled by default.
|
||||
panel: null
|
||||
|
|
|
|||
|
|
@ -25,6 +25,10 @@ type HTTPConfig struct {
|
|||
// This email address can be configured here.
|
||||
CertbotEmail string `yaml:"certbot_email" validate:"email"`
|
||||
|
||||
// Debug determines if error messages should be written as html pages with stack traces to http clients.
|
||||
// This potentially exposes sensitive information and may cause certain API responses to be of content type 'text/html' unexpectedly.
|
||||
Debug validators.NullableBool `yaml:"debug" validate:"bool" default:"false"`
|
||||
|
||||
// Also serve the panel on the toplevel domain.
|
||||
// Note that the panel is *always* servered under the "panel" domain.
|
||||
// Disabling this is not recommended.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue