db127f5b7e924fc5d08b2e7afa7e30adf9978b7b

Author
Ayman Bagabas <ayman.bagabas@gmail.com>
Committer
Ayman Bagabas <ayman.bagabas@gmail.com>
Date

Message

fix(config): don't marshal server config

Diff

 1diff --git a/internal/config/config.go b/internal/config/config.go
 2index 1c5683a2511c572b8b0d77608889986ad9ba71d1..f039e49baa4b51eeb8685ba7d0020004beca45b1 100644
 3--- a/internal/config/config.go
 4+++ b/internal/config/config.go
 5@@ -25,15 +25,15 @@ import (
 6 
 7 // Config is the Soft Serve configuration.
 8 type Config struct {
 9-	Name         string `yaml:"name"`
10-	Host         string `yaml:"host"`
11-	Port         int    `yaml:"port"`
12-	AnonAccess   string `yaml:"anon-access"`
13-	AllowKeyless bool   `yaml:"allow-keyless"`
14-	Users        []User `yaml:"users"`
15-	Repos        []Repo `yaml:"repos"`
16-	Source       *git.RepoSource
17-	Cfg          *config.Config
18+	Name         string          `yaml:"name"`
19+	Host         string          `yaml:"host"`
20+	Port         int             `yaml:"port"`
21+	AnonAccess   string          `yaml:"anon-access"`
22+	AllowKeyless bool            `yaml:"allow-keyless"`
23+	Users        []User          `yaml:"users"`
24+	Repos        []Repo          `yaml:"repos"`
25+	Source       *git.RepoSource `yaml:"-"`
26+	Cfg          *config.Config  `yaml:"-"`
27 	mtx          sync.Mutex
28 }
29