summaryrefslogtreecommitdiffstats
path: root/config/config.go
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-12 22:58:23 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-12 22:58:23 +0530
commit462c7ddc70f7c4da9515298439246f3b40b244f5 (patch)
treecbb11e717a3f3ffb63fb7e802429adbbba596510 /config/config.go
parent60e1092dbcfacb28b30d052b0f73d2249cd63a9d (diff)
downloadlegit-462c7ddc70f7c4da9515298439246f3b40b244f5.tar.gz
legit-462c7ddc70f7c4da9515298439246f3b40b244f5.tar.bz2
legit-462c7ddc70f7c4da9515298439246f3b40b244f5.zip
config: server host and port
Diffstat (limited to '')
-rw-r--r--config/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go
index 65d1a71..1a29e4f 100644
--- a/config/config.go
+++ b/config/config.go
@@ -19,6 +19,10 @@ type Config struct {
Title string `yaml:"title"`
Description string `yaml:"description"`
} `yaml:"meta"`
+ Server struct {
+ Host string `yaml:"host"`
+ Port int `yaml:"port"`
+ } `yaml:"server"`
}
func Read(f string) (*Config, error) {