diff --git a/Caddyfile b/Caddyfile index 3f80830..3da8c01 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,9 +1,18 @@ +# 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 + 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 +}