diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2026-01-18 16:45:04 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2026-01-18 16:45:44 -0500 |
| commit | 037ddb4f29fc2af3ef16a9e51312bde85f635c9b (patch) | |
| tree | 8e0d3f357d9440b9e740d92a0e53e4ad2a6f7e4e /entrypoint.sh | |
| parent | bae5e4768d6afe32659d803fe454ba49ee948031 (diff) | |
| download | alpine-cgit-037ddb4f29fc2af3ef16a9e51312bde85f635c9b.tar.gz alpine-cgit-037ddb4f29fc2af3ef16a9e51312bde85f635c9b.tar.xz | |
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.
Diffstat (limited to 'entrypoint.sh')
| -rwxr-xr-x | entrypoint.sh | 22 |
1 files changed, 2 insertions, 20 deletions
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; |
