Skip to content

Commit f2cfc67

Browse files
author
pandadiestro
committed
feat: dynamic port selection
1 parent 216e59e commit f2cfc67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stiller-backend/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import "github.com/profclems/go-dotenv"
44

55
type ConfigType struct {
66
// local directory where to retrieve/store data from/to
7+
Port string
78
FilesPath string
89
DBPath string
910
Secret []byte
@@ -14,6 +15,7 @@ func newConfig() *ConfigType {
1415
dotenv.Load()
1516

1617
return &ConfigType{
18+
Port: dotenv.GetString("Port"),
1719
FilesPath: dotenv.GetString("FilesPath"),
1820
DBPath: dotenv.GetString("DBPath"),
1921
Secret: []byte(dotenv.GetString("Secret")),

0 commit comments

Comments
 (0)