From 3dc6d28018536b86a8dfe087fabf2fd938eeb184 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Tue, 28 May 2024 19:59:59 +0300 Subject: [PATCH] configurable PORT --- internal/nostr/nostr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/nostr/nostr.go b/internal/nostr/nostr.go index 47c1df9..9498e5a 100644 --- a/internal/nostr/nostr.go +++ b/internal/nostr/nostr.go @@ -34,7 +34,7 @@ type Config struct { DatabaseMaxConns int `envconfig:"DATABASE_MAX_CONNS" default:"10"` DatabaseMaxIdleConns int `envconfig:"DATABASE_MAX_IDLE_CONNS" default:"5"` DatabaseConnMaxLifetime int `envconfig:"DATABASE_CONN_MAX_LIFETIME" default:"1800"` // 30 minutes - Port int `default:"8081"` + Port int `envconfig:"PORT" default:"8081"` } type Service struct {