[fix] caddyfile
This commit is contained in:
		
							parent
							
								
									44d75ba59c
								
							
						
					
					
						commit
						3ea127607b
					
				
					 2 changed files with 9 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -1,7 +1,8 @@
 | 
			
		|||
localhost {
 | 
			
		||||
	respond "Hello, world!"
 | 
			
		||||
:80, :443 {
 | 
			
		||||
        encode zstd gzip
 | 
			
		||||
        https://caddyserver.com/docs/caddyfile
 | 
			
		||||
        file_server browse
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
n2-plus.local {
 | 
			
		||||
	root site
 | 
			
		||||
:8080 {
 | 
			
		||||
	respond "I am 8080"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -1,8 +1,9 @@
 | 
			
		|||
<html>
 | 
			
		||||
<head>
 | 
			
		||||
<title>yes</title>
 | 
			
		||||
<title>Caddy test</title>
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
heloo
 | 
			
		||||
This is a test
 | 
			
		||||
<div>Page loaded at: {{now | date "Mon Jan 2 15:04:05 MST 2006"}}</div>div>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue