summaryrefslogtreecommitdiff
path: root/cgit/apache2/conf-available/local-cgit.conf
blob: 27a6c1308ed0a7d57488b3553781890397884bd1 (plain)
  1. AddDefaultCharset UTF-8
  2. <Directory /usr/share/cgit>
  3. Options None
  4. AllowOverride None
  5. Require all granted
  6. </Directory>
  7. Alias /cgit-css/ /usr/share/cgit/
  8. Alias /favicon.ico /usr/share/cgit/favicon.ico
  9. Alias /robots.txt /usr/share/cgit/robots.txt
  10. # this requires cgit config: enable-index-links=1
  11. RedirectMatch permanent ^/([^./]+)\.git(/.*) /$1$2
  12. <LocationMatch ^/(?![^./]+\.git/|cgit-css/.*|favicon\.ico|robots\.txt|\.well-known/acme-challenge/)>
  13. ProxyPass unix:/run/uwsgi/app/local-git/socket|uwsgi://local-git
  14. </LocationMatch>