aboutsummaryrefslogtreecommitdiff
path: root/backend/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/config.go')
-rw-r--r--backend/config.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/backend/config.go b/backend/config.go
index b221978..33d5852 100644
--- a/backend/config.go
+++ b/backend/config.go
@@ -29,13 +29,14 @@ type Replacer struct {
}
type Config struct {
- Domain string `toml:"domain"`
- Name string `toml:"name"`
- Description string `toml:"description"`
- DefaultImage string `toml:"default_image"`
- Quotes []string `toml:"quotes"`
- Language string `toml:"language"`
- Database string `toml:"database"`
+ Domain string `toml:"domain"`
+ Name string `toml:"name"`
+ Description string `toml:"description"`
+ DefaultImage string `toml:"default_image"`
+ Quotes []string `toml:"quotes"`
+ Language string `toml:"language"`
+ Database string `toml:"database"`
+ AdminPassword string `toml:"admin_password"`
Sections []Section `toml:"section"`
@@ -75,6 +76,7 @@ func (c *Config) DefaultValues() {
c.RootFolder = "data"
c.PublicFolder = "public"
c.Database = "database.sqlite"
+ c.AdminPassword = "Ch@ngeM€Please!"
c.Quotes = []string{"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do."}
c.Replacers = []Replacer{{"~", " "}}
}