File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ func Load() *Config {
6161 return & Config {
6262 Server : ServerConfig {
6363 Host : getEnv ("SERVER_HOST" , "localhost" ),
64- Port : getEnv ("SERVER_PORT " , "8080" ),
64+ Port : getEnv ("PORT " , "8080" ),
6565 Environment : getEnv ("SERVER_ENVIRONMENT" , env ),
6666 },
6767 Database : DatabaseConfig {
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ func (s *Server) setupRoutes() {
4343 s .router .Use (cors .Default ())
4444 s .router .Use (middleware .LoggingMiddleware ())
4545 s .router .Use (middleware .MetricsMiddleware ())
46+ _ = s .router .SetTrustedProxies (nil )
4647
4748 s .router .HEAD ("/health" , func (c * gin.Context ) { c .Status (http .StatusOK ) })
4849
Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ services:
1010 envVars :
1111 - key : SERVER_HOST
1212 value : 0.0.0.0
13- - key : SERVER_PORT
14- value : $PORT
1513 - key : SERVER_ENVIRONMENT
1614 value : production
1715 - key : DB_URL
You can’t perform that action at this time.
0 commit comments