Skip to content

Commit

Permalink
feat: dynamic port selection
Browse files Browse the repository at this point in the history
  • Loading branch information
pandadiestro committed Nov 10, 2024
1 parent 216e59e commit f2cfc67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stiller-backend/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import "github.com/profclems/go-dotenv"

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

return &ConfigType{
Port: dotenv.GetString("Port"),
FilesPath: dotenv.GetString("FilesPath"),
DBPath: dotenv.GetString("DBPath"),
Secret: []byte(dotenv.GetString("Secret")),
Expand Down

0 comments on commit f2cfc67

Please sign in to comment.