mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	use AppSubUrl as prefix for routes in FCGI mode
This commit is contained in:
		@@ -85,6 +85,9 @@ func newMacaron() *macaron.Macaron {
 | 
			
		||||
	if setting.EnableGzip {
 | 
			
		||||
		m.Use(macaron.Gziper())
 | 
			
		||||
	}
 | 
			
		||||
	if setting.Protocol == setting.FCGI {
 | 
			
		||||
		m.SetURLPrefix(setting.AppSubUrl)
 | 
			
		||||
	}
 | 
			
		||||
	m.Use(macaron.Static(
 | 
			
		||||
		path.Join(setting.StaticRootPath, "public"),
 | 
			
		||||
		macaron.StaticOptions{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user