mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Import docs into main repository (#2874)
* import docs into main repository Signed-off-by: Matti Ranta <matti@mdranta.net>
This commit is contained in:
		
				
					committed by
					
						
						Lauris BH
					
				
			
			
				
	
			
			
			
						parent
						
							f148a4a1ed
						
					
				
				
					commit
					fb5c6b6444
				
			
							
								
								
									
										39
									
								
								docs/docker/caddy.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								docs/docker/caddy.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,39 @@
 | 
			
		||||
:80 {
 | 
			
		||||
  root /srv/www
 | 
			
		||||
 | 
			
		||||
  locale en-US zh-CN zh-TW pt-BR nl-NL {
 | 
			
		||||
    detect header
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  redir 301 {
 | 
			
		||||
    if {path} match ^/$
 | 
			
		||||
    / /{>Detected-Locale}/
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  rewrite /en-US/ {
 | 
			
		||||
    regexp (.*)
 | 
			
		||||
    to /en-us/{1}
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  rewrite /zh-CN/ {
 | 
			
		||||
    regexp (.*)
 | 
			
		||||
    to /zh-cn/{1}
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  rewrite /zh-TW/ {
 | 
			
		||||
    regexp (.*)
 | 
			
		||||
    to /zh-tw/{1}
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  rewrite /pt-BR/ {
 | 
			
		||||
    regexp (.*)
 | 
			
		||||
    to /pt-br/{1}
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  rewrite /nl-NL/ {
 | 
			
		||||
    regexp (.*)
 | 
			
		||||
    to /nl-nl/{1}
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  header / Vary "Accept-Language"
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user