Dear Gitlab users, due to maintenance reasons, Gitlab will not be available on Thursday 30.09.2021 from 5:00 pm to approximately 5:30 pm.

Commit e7bf7a6b authored by Andreas Wagner's avatar Andreas Wagner
Browse files

Add defaults.

parent 848252cf
......@@ -19,9 +19,22 @@ func Configure(Config *tei2zenodo.Config) error {
*/
// set defaults
viper.SetDefault("ContentDir", "content")
viper.SetDefault("LayoutDir", "layouts")
viper.SetDefault("Taxonomies", map[string]string{"tag": "tags", "category": "categories"})
viper.SetDefault("ListenSpec", "8081")
viper.SetDefault("Verbose", false)
viper.SetDefault("APIRoot", "/api/v1")
viper.SetDefault("FileAPI", "/file")
viper.SetDefault("WebhookAPI", "/hooks/receivers/github/events/")
viper.SetDefault("Log", map[string]string{"file": "t2z.log", "level": "Info"})
viper.SetDefault("Zenodo", map[string]string{"prefix": "10.5072/zenodo.",
"host": "https://sandbox.zenodo.org",
"token": "jLsTkUOMDU2fnGdGivGbB9TnMkPcADhIzEKHqqoVzMRsdYEC0Sqqfz72SPpt"})
viper.SetDefault("Git", map[string]string{"host": "https://api.github.com",
"token": "",
"user": "octocat",
"repo": "octocat/hello-world",
"commit_phrase": "",
"commit_dontpublish_phrase": "test"})
viper.SetEnvPrefix("T2Z")
viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment