mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-06 03:48:45 +00:00
Add single instance mode
This commit is contained in:
parent
5abbadfa62
commit
55ed6a480e
5 changed files with 82 additions and 43 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue