2024-08-22 20:58:42 +02:00
|
|
|
# caddy reload --config /etc/caddy/Caddyfile
|
2024-06-23 13:55:53 +02:00
|
|
|
{
|
|
|
|
order gitea before file_server
|
|
|
|
}
|
|
|
|
:3003
|
|
|
|
gitea {
|
2024-08-22 20:58:42 +02:00
|
|
|
token {$GITEA_ACCESS_TOKEN} # Settings > Applications > Generate Token
|
|
|
|
server {$GITEA_HOST} # https://yourgitea.yourdomain.com
|
2024-06-23 13:55:53 +02:00
|
|
|
domain {$PAGES_DOMAIN} # pages.yourdomain.com
|
|
|
|
}
|
2024-08-22 20:58:42 +02:00
|
|
|
|
|
|
|
@js {
|
|
|
|
path *.js
|
|
|
|
}
|
|
|
|
|
|
|
|
header @js {
|
|
|
|
Content-Type text/javascript # https://gitea.djmil.dev/djmil/gitea-pages/issues/3
|
|
|
|
}
|