mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +02:00
refactored flag/env loading
This commit is contained in:
parent
dc49dbbeff
commit
68130122e7
23 changed files with 1128 additions and 909 deletions
|
@ -23,7 +23,6 @@ import (
|
|||
"github.com/documize/community/core/api/convert/md"
|
||||
"github.com/documize/community/core/api/request"
|
||||
api "github.com/documize/community/core/convapi"
|
||||
"github.com/documize/community/core/env"
|
||||
"github.com/documize/community/core/log"
|
||||
"github.com/documize/glick"
|
||||
)
|
||||
|
@ -32,12 +31,12 @@ import (
|
|||
var PluginFile = "DB" // this points to the database
|
||||
var insecure = "false"
|
||||
|
||||
func init() {
|
||||
env.GetString(&PluginFile, "plugin", false,
|
||||
"the JSON file describing plugins, default 'DB' uses the database config table 'FILEPLUGINS' entry", nil)
|
||||
env.GetString(&insecure, "insecure", false,
|
||||
"if 'true' allow https endpoints with invalid certificates (only for testing)", nil)
|
||||
}
|
||||
// func init() {
|
||||
// env.GetString(&PluginFile, "plugin", false,
|
||||
// "the JSON file describing plugins, default 'DB' uses the database config table 'FILEPLUGINS' entry", nil)
|
||||
// env.GetString(&insecure, "insecure", false,
|
||||
// "if 'true' allow https endpoints with invalid certificates (only for testing)", nil)
|
||||
// }
|
||||
|
||||
type infoLog struct{}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue