From 037ddb4f29fc2af3ef16a9e51312bde85f635c9b Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Sun, 18 Jan 2026 16:45:04 -0500 Subject: Bump to Alpine 3.23 Switch markdown formatting to cmark which is far faster than the old python based setup. Also tweak cgitrc and Nginx configuration a bit for simplicity. Move webroot out of git root. --- entrypoint.sh | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'entrypoint.sh') diff --git a/entrypoint.sh b/entrypoint.sh index bc46d2b..a8de13d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -59,30 +59,12 @@ http { server_tokens off; server { listen $NGINX_LISTEN; listen [::]:$NGINX_LISTEN; - root /var/git; - - location /local { - alias /var/git/local; - add_header Cache-Control "public, max-age=604800"; - } - + root /var/git/.webroot; + location / { try_files \$uri @cgit; } - # Serve static files with nginx and allow local files to override - location ~* ^.+(cgit.(css|png)|favicon.ico|robots.txt) { - try_files @webappstatic @overrides; - } - location @webappstatic { - root /usr/share/webapps/cgit; - expires 30d; - } - location @overrides { - root /var/git; - expires 30d; - } - location @cgit { gzip off; fastcgi_param PATH_INFO \$uri; -- cgit v1.2.3