chore: update default configuration

This commit is contained in:
Jonas Kaninda
2024-10-29 14:21:55 +01:00
parent ac6cba246a
commit f30ddac7a1
3 changed files with 15 additions and 4 deletions

View File

@@ -38,6 +38,8 @@ func (proxyRoute ProxyRoute) ProxyHandler() http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
realIP := getRealIP(r)
logger.Info("%s %s %s %s", r.Method, realIP, r.URL, r.UserAgent())
//Set Server name
w.Header().Set("Server", serverName)
// Set CORS headers from the cors config
//Update Cors Headers
for k, v := range proxyRoute.cors.Headers {