aboutsummaryrefslogtreecommitdiff
path: root/backend/config.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-12-22 18:18:56 +0000
committerAnhgelus Morhtuuzh <william@herges.fr>2025-12-22 18:18:56 +0000
commit66d6ab349196fd5d95937f533faa9db6ba65ebb3 (patch)
tree84ce7dd31c9e4dc10dbb41c5428cc2cb66bb44d9 /backend/config.go
parent1c86bdda2a3067ade9aa765d8d87fe27151dd895 (diff)
parentc66a5cc0809875df0299ebb80be423436c195416 (diff)
Merge pull request '[Feat] Stats' (#4) from feat/stats into main
Reviewed-on: https://git.anhgelus.world/anhgelus/small-web/pulls/4
Diffstat (limited to 'backend/config.go')
-rw-r--r--backend/config.go16
1 files changed, 10 insertions, 6 deletions
diff --git a/backend/config.go b/backend/config.go
index e009b8a..33d5852 100644
--- a/backend/config.go
+++ b/backend/config.go
@@ -29,12 +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"`
+ 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"`
@@ -73,6 +75,8 @@ 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{{"~", "&thinsp;"}}
}