Skip to content

Commit

Permalink
configurable PORT
Browse files Browse the repository at this point in the history
  • Loading branch information
bumi authored May 28, 2024
1 parent b817245 commit 3dc6d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/nostr/nostr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3dc6d28

Please sign in to comment.