Incorrect MIME type for *.js files
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
This commit is contained in:
parent
a33e3e1fb9
commit
beaf379300
@ -1,3 +1,4 @@
|
|||||||
|
# caddy reload --config /etc/caddy/Caddyfile
|
||||||
{
|
{
|
||||||
order gitea before file_server
|
order gitea before file_server
|
||||||
}
|
}
|
||||||
@ -7,3 +8,11 @@ gitea {
|
|||||||
server {$GITEA_HOST} # https://yourgitea.yourdomain.com
|
server {$GITEA_HOST} # https://yourgitea.yourdomain.com
|
||||||
domain {$PAGES_DOMAIN} # pages.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
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user