mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-28 16:47:01 +09:00
1 parent
7621b65403
commit
2eb7b3c7da
5 files changed
+87
-95
No files matched your search
@@ -34,9 +34,7 @@ func ProtocolMiddlewares() (handlers []any) {
|
||||
handlers = append(handlers, ForwardedHeadersHandler(setting.ReverseProxyLimit, setting.ReverseProxyTrustedProxies))
|
||||
}
|
||||
|
||||
if setting.IsRouteLogEnabled() {
|
||||
handlers = append(handlers, routing.NewLoggerHandler())
|
||||
}
|
||||
handlers = append(handlers, routing.NewRequestInfoHandler())
|
||||
|
||||
if setting.IsAccessLogEnabled() {
|
||||
handlers = append(handlers, context.AccessLogger())
|
||||
|
||||
Reference in new issue
Block a user