summaryrefslogtreecommitdiff
path: root/cgit/apache2/conf-available/local-cgit.conf
diff options
context:
space:
mode:
Diffstat (limited to 'cgit/apache2/conf-available/local-cgit.conf')
-rw-r--r--cgit/apache2/conf-available/local-cgit.conf15
1 files changed, 15 insertions, 0 deletions
diff --git a/cgit/apache2/conf-available/local-cgit.conf b/cgit/apache2/conf-available/local-cgit.conf
new file mode 100644
index 0000000..fb47228
--- /dev/null
+++ b/cgit/apache2/conf-available/local-cgit.conf
@@ -0,0 +1,15 @@
+AddDefaultCharset UTF-8
+
+<Directory /usr/share/cgit>
+ Options None
+ AllowOverride None
+ Require all granted
+</Directory>
+
+Alias /cgit-css/ /usr/share/cgit/
+Alias /favicon.ico /usr/share/cgit/favicon.ico
+Alias /robots.txt /usr/share/cgit/robots.txt
+
+<LocationMatch ^/(?!cgit-css/.*|facicon\.ico|robots\.txt)>
+ ProxyPass unix:/run/uwsgi/app/local-git/socket|uwsgi://local-git
+</LocationMatch>