mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Allow custom public files (#782)
* Allow custom public files * Gofmt code, lots of places not related to this pr
This commit is contained in:
		@@ -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"),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user