about summary refs log tree commit diff stats
path: root/internal/server
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server')
-rw-r--r--internal/server/server.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/server/server.go b/internal/server/server.go
index 5def347..f15d011 100644
--- a/internal/server/server.go
+++ b/internal/server/server.go
@@ -43,6 +43,7 @@ type Config struct {
 	ListenAddress string  `conf:"default:localhost"`
 	Port          string  `conf:"default:3000,short:p"`
 	BaseURL       cfg.URL `conf:"default:http://localhost:3000,short:b"`
+	ConfigFile    string  `conf:"short:c"`
 }
 
 type HTTPError struct {
@@ -81,7 +82,7 @@ func applyDevModeOverrides(config *cfg.Config) {
 
 func New(runtimeConfig *Config) (*Server, error) {
 	var err error
-	config, err = cfg.GetConfig()
+	config, err = cfg.GetConfig(runtimeConfig.ConfigFile)
 	if err != nil {
 		return nil, errors.WithMessage(err, "error parsing configuration file")
 	}