fix realip

This commit is contained in:
Evan Jarrett
2025-10-22 22:49:42 -05:00
parent 30ea5256f3
commit 97d1b3cdd5
2 changed files with 876 additions and 0 deletions
+3
View File
@@ -97,6 +97,9 @@ func main() {
// Setup HTTP routes with chi router
r := chi.NewRouter()
// Add RealIP middleware to extract real client IP from proxy headers
r.Use(middleware.RealIP)
// Add logging middleware to log all HTTP requests
r.Use(middleware.Logger)