Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhou26 authored Apr 9, 2024
1 parent 345bce0 commit 33a5e56
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,15 @@ func main() {

_ = godotenv.Load(".env")
host := os.Getenv("SERVER_HOST")
port := os.Getenv("SERVER_PORT")
port := os.Getenv("PORT")
tlsCert := os.Getenv("TLS_CERT")
tlsKey := os.Getenv("TLS_KEY")

if host == "" {
host = "0.0.0.0"
}
if port == "" {
port = os.Getenv("PORT")
if port == "" {
port = "8080"
port = "8080"
}
}

Expand Down

0 comments on commit 33a5e56

Please sign in to comment.