Changed hard-coded values to config options

This commit is contained in:
2017-10-06 23:59:26 +02:00
parent 2d8bdf9643
commit a83c372c9f
5 changed files with 34 additions and 15 deletions
+8 -3
View File
@@ -20,11 +20,16 @@ type Config struct {
} `json:"db"`
Server struct {
Host string `json:"host"`
Port int `json:"port"`
UI string `json:"ui"`
Host string `json:"host"`
Port int `json:"port"`
Debug bool `json:"debug"`
} `json:"server"`
Directories struct {
UI string `json:"ui"`
Templates string `json:"templates"`
} `json:"directories"`
Wiki struct {
URL string `json:"url"`
Username string `json:"username"`