From 053cd1b7fe10f746792e0d1353fad4ad04e8ebe9 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 18 Apr 2018 16:41:27 +0800 Subject: Add git role: host git repos and share repos via cgit * Host git repositories * Share git repositories through web interface via cgit * The static resources used by cgit is also managed/deployed by a git repo ^_^ --- roles/web/templates/sites/liwt.cgit.conf.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'roles/web') diff --git a/roles/web/templates/sites/liwt.cgit.conf.j2 b/roles/web/templates/sites/liwt.cgit.conf.j2 index 1c9af01..50f61db 100644 --- a/roles/web/templates/sites/liwt.cgit.conf.j2 +++ b/roles/web/templates/sites/liwt.cgit.conf.j2 @@ -13,7 +13,7 @@ # 2017-06-18 # -{% if cgit is defined and domains_hascert[domain] %} +{% if git.cgit is defined and domains_hascert[domain] %} server { listen 443 ssl http2; listen [::]:443 ssl http2; @@ -31,11 +31,11 @@ server { include uwsgi_params; # modifier1: 9 - size of CGI block vars (HTTP request body excluded) uwsgi_modifier1 9; - uwsgi_pass unix:/var/run/uwsgi-cgit.sock; + uwsgi_pass unix:/tmp/uwsgi-cgit.sock; } location /static/ { - root /home/www/git/; + root {{ git.cgit.root }}; } error_page 500 502 503 504 /50x.html; -- cgit v1.2.2