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 2539cf6 commit 347a4ed
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@ func main() {

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

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

Expand Down

0 comments on commit 347a4ed

Please sign in to comment.