aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-04-19 08:18:36 +0000
committerr <r@freesoftwareextremist.com>2020-04-19 08:18:36 +0000
commit55ed6a480ea049f789d778e4bae06ffa4d790ee1 (patch)
tree0c9e32e565c9a5bed27b018579f06573846ca511 /config
parent5abbadfa622e58a4951cf0b2f96fbf8094641be8 (diff)
downloadbloat-55ed6a480ea049f789d778e4bae06ffa4d790ee1.tar.gz
bloat-55ed6a480ea049f789d778e4bae06ffa4d790ee1.zip
Add single instance mode
Diffstat (limited to 'config')
-rw-r--r--config/config.go23
1 files changed, 13 insertions, 10 deletions
diff --git a/config/config.go b/config/config.go
index 2d4fb8d..d6140e5 100644
--- a/config/config.go
+++ b/config/config.go
@@ -11,16 +11,17 @@ import (
)
type config struct {
- ListenAddress string
- ClientName string
- ClientScope string
- ClientWebsite string
- StaticDirectory string
- TemplatesPath string
- DatabasePath string
- CustomCSS string
- PostFormats []model.PostFormat
- LogFile string
+ ListenAddress string
+ ClientName string
+ ClientScope string
+ ClientWebsite string
+ SingleInstance string
+ StaticDirectory string
+ TemplatesPath string
+ DatabasePath string
+ CustomCSS string
+ PostFormats []model.PostFormat
+ LogFile string
}
func (c *config) IsValid() bool {
@@ -68,6 +69,8 @@ func Parse(r io.Reader) (c *config, err error) {
c.ClientScope = val
case "client_website":
c.ClientWebsite = val
+ case "single_instance":
+ c.SingleInstance = val
case "static_directory":
c.StaticDirectory = val
case "templates_path":