mirror of
				https://github.com/cinnyapp/cinny.git
				synced 2025-11-03 22:10:29 +03:00 
			
		
		
		
	Update example caddyfile (#2285)
This commit is contained in:
		
							parent
							
								
									ff6d0b8f9b
								
							
						
					
					
						commit
						405d1f6789
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
# more info: https://caddyserver.com/docs/caddyfile/patterns#single-page-apps-spas
 | 
			
		||||
cinny.domain.tld {
 | 
			
		||||
  @nativeRouter not file {path} /
 | 
			
		||||
  rewrite @nativeRouter {http.matchers.file.relative}
 | 
			
		||||
  root * /path/to/caddy/dist
 | 
			
		||||
  root * /path/to/cinny/dist
 | 
			
		||||
  try_files {path} / index.html
 | 
			
		||||
  file_server
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue