diff options
author | Thomas Boerger <thomas@webhippie.de> | 2017-01-28 23:14:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-28 23:14:56 +0100 |
commit | 78535fb08ebe667f27da6b44a9af52aae1148434 (patch) | |
tree | fa4f539811b8e66ae7aa7f177702180642844bc3 /cmd | |
parent | cc31a21192cba31cc2ede74b44f1c4e19621d4f7 (diff) | |
download | gitea-78535fb08ebe667f27da6b44a9af52aae1148434.tar.gz gitea-78535fb08ebe667f27da6b44a9af52aae1148434.zip |
Allow custom public files (#782)
* Allow custom public files
* Gofmt code, lots of places not related to this pr
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go index f21244a54a..2e5ae8cd58 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -88,6 +88,11 @@ func newMacaron() *macaron.Macaron { if setting.Protocol == setting.FCGI { m.SetURLPrefix(setting.AppSubURL) } + m.Use(public.Custom( + &public.Options{ + SkipLogging: setting.DisableRouterLog, + }, + )) m.Use(public.Static( &public.Options{ Directory: path.Join(setting.StaticRootPath, "public"), |