feat: move requestip config to http config (#25)

This commit is contained in:
Thanee Charattrakool
2024-06-12 22:08:03 +07:00
committed by GitHub
parent a7bc6257c4
commit 51fd1f6636
3 changed files with 16 additions and 19 deletions

View File

@@ -145,7 +145,7 @@ func runHandler(cmd *cobra.Command, _ []string) error {
Use(requestid.New()).
Use(requestcontext.New(
requestcontext.WithRequestId(),
requestcontext.WithClientIP(conf.RequestIP),
requestcontext.WithClientIP(conf.HTTPServer.RequestIP),
)).
Use(requestlogger.New(conf.HTTPServer.Logger)).
Use(fiberrecover.New(fiberrecover.Config{