This commit closes #3 Caddy server relies on Alpine's file type MIME discovery, which as of Alpine v3.20 is broken: $ file --mime-type -b simple.js > text/plain
		
			
				
	
	
		
			19 lines
		
	
	
		
			406 B
		
	
	
	
		
			Caddyfile
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			406 B
		
	
	
	
		
			Caddyfile
		
	
	
	
	
	
# caddy reload --config /etc/caddy/Caddyfile
 | 
						|
{
 | 
						|
	order gitea before file_server
 | 
						|
}
 | 
						|
:3003
 | 
						|
gitea {
 | 
						|
	token {$GITEA_ACCESS_TOKEN} # Settings > Applications > Generate Token
 | 
						|
	server {$GITEA_HOST} #   https://yourgitea.yourdomain.com
 | 
						|
	domain {$PAGES_DOMAIN} #             pages.yourdomain.com
 | 
						|
}
 | 
						|
 | 
						|
@js {
 | 
						|
	path *.js
 | 
						|
}
 | 
						|
 | 
						|
header @js {
 | 
						|
	Content-Type text/javascript # https://gitea.djmil.dev/djmil/gitea-pages/issues/3
 | 
						|
}
 |