Skip to content

Commit 78b43bd

Browse files
committed
🧱 auto env config for viper
1 parent 9ba3a1e commit 78b43bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"flag"
66
"fmt"
7+
"github.com/spf13/viper"
78
"github.com/stulzq/azure-openai-proxy/azure"
89
"log"
910
"net/http"
@@ -22,6 +23,7 @@ var (
2223
)
2324

2425
func main() {
26+
viper.AutomaticEnv()
2527
parseFlag()
2628

2729
azure.Init()

0 commit comments

Comments
 (0)