mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-28 11:40:04 +00:00
Added setting description
This commit is contained in:
@@ -32,6 +32,7 @@ CREATE TABLE IF NOT EXISTS `setting`
|
|||||||
created_on INTEGER NOT NULL DEFAULT 0,
|
created_on INTEGER NOT NULL DEFAULT 0,
|
||||||
modified_on INTEGER NOT NULL DEFAULT 0,
|
modified_on INTEGER NOT NULL DEFAULT 0,
|
||||||
name TEXT NOT NULL,
|
name TEXT NOT NULL,
|
||||||
|
description TEXT NOT NULL,
|
||||||
value TEXT NOT NULL,
|
value TEXT NOT NULL,
|
||||||
UNIQUE (name)
|
UNIQUE (name)
|
||||||
);
|
);
|
||||||
|
@@ -5,14 +5,31 @@ INSERT INTO `setting` (
|
|||||||
created_on,
|
created_on,
|
||||||
modified_on,
|
modified_on,
|
||||||
name,
|
name,
|
||||||
|
description,
|
||||||
value
|
value
|
||||||
) VALUES (
|
) VALUES (
|
||||||
strftime('%s', 'now'),
|
strftime('%s', 'now'),
|
||||||
strftime('%s', 'now'),
|
strftime('%s', 'now'),
|
||||||
"error-reporting",
|
"error-reporting",
|
||||||
|
"If enabled, any application errors are reported to Sentry. Sensitive information is not sent. All information sent is also private.",
|
||||||
"true"
|
"true"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-- Default site
|
||||||
|
INSERT INTO `setting` (
|
||||||
|
created_on,
|
||||||
|
modified_on,
|
||||||
|
name,
|
||||||
|
description,
|
||||||
|
value
|
||||||
|
) VALUES (
|
||||||
|
strftime('%s', 'now'),
|
||||||
|
strftime('%s', 'now'),
|
||||||
|
"default-site",
|
||||||
|
"What to show users who hit your Nginx server by default",
|
||||||
|
"welcome"
|
||||||
|
);
|
||||||
|
|
||||||
-- Default Certificate Authorities
|
-- Default Certificate Authorities
|
||||||
|
|
||||||
INSERT INTO `certificate_authority` (
|
INSERT INTO `certificate_authority` (
|
||||||
|
@@ -10,6 +10,10 @@ func ApplySettings() {
|
|||||||
logger.Debug("Applying Settings")
|
logger.Debug("Applying Settings")
|
||||||
|
|
||||||
// Error-reporting
|
// Error-reporting
|
||||||
m, _ := GetByName("error-reporting")
|
m, err := GetByName("error-reporting")
|
||||||
config.ErrorReporting = m.Value.Decoded.(bool)
|
if err != nil {
|
||||||
|
logger.Error("ApplySettingsError", err)
|
||||||
|
} else {
|
||||||
|
config.ErrorReporting = m.Value.Decoded.(bool)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -15,11 +15,12 @@ const (
|
|||||||
|
|
||||||
// Model is the user model
|
// Model is the user model
|
||||||
type Model struct {
|
type Model struct {
|
||||||
ID int `json:"id" db:"id" filter:"id,integer"`
|
ID int `json:"id" db:"id" filter:"id,integer"`
|
||||||
CreatedOn types.DBDate `json:"created_on" db:"created_on" filter:"created_on,integer"`
|
CreatedOn types.DBDate `json:"created_on" db:"created_on" filter:"created_on,integer"`
|
||||||
ModifiedOn types.DBDate `json:"modified_on" db:"modified_on" filter:"modified_on,integer"`
|
ModifiedOn types.DBDate `json:"modified_on" db:"modified_on" filter:"modified_on,integer"`
|
||||||
Name string `json:"name" db:"name" filter:"name,string"`
|
Name string `json:"name" db:"name" filter:"name,string"`
|
||||||
Value types.JSONB `json:"value" db:"value"`
|
Description string `json:"description" db:"description" filter:"description,string"`
|
||||||
|
Value types.JSONB `json:"value" db:"value"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Model) getByQuery(query string, params []interface{}) error {
|
func (m *Model) getByQuery(query string, params []interface{}) error {
|
||||||
|
Reference in New Issue
Block a user