mirror of
				https://github.com/gravitl/netmaker.git
				synced 2025-10-30 11:46:28 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Caddyfile
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Caddyfile
		
	
	
	
	
	
| {
 | |
|         # LetsEncrypt account
 | |
|         email YOUR_EMAIL
 | |
| }
 | |
| 
 | |
| # Dashboard
 | |
| https://dashboard.NETMAKER_BASE_DOMAIN {
 | |
|         # Apply basic security headers
 | |
|         header {
 | |
|                 # Enable cross origin access to *.NETMAKER_BASE_DOMAIN
 | |
|                 Access-Control-Allow-Origin *.NETMAKER_BASE_DOMAIN
 | |
|                 # Enable HTTP Strict Transport Security (HSTS)
 | |
|                 Strict-Transport-Security "max-age=31536000;"
 | |
|                 # Enable cross-site filter (XSS) and tell browser to block detected attacks
 | |
|                 X-XSS-Protection "1; mode=block"
 | |
|                 # Disallow the site to be rendered within a frame on a foreign domain (clickjacking protection)
 | |
|                 X-Frame-Options "SAMEORIGIN"
 | |
|                 # Prevent search engines from indexing
 | |
|                 X-Robots-Tag "none"
 | |
|                 # Remove the server name
 | |
|                 -Server
 | |
|         }
 | |
| 
 | |
|         reverse_proxy http://netmaker-ui
 | |
| }
 | |
| 
 | |
| # API
 | |
| https://api.NETMAKER_BASE_DOMAIN {
 | |
|         reverse_proxy http://netmaker:8081
 | |
| }
 | 
