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