aboutsummaryrefslogtreecommitdiffstats
path: root/roles/web
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-04-18 16:41:27 +0800
committerAaron LI <aly@aaronly.me>2018-04-18 16:44:09 +0800
commit053cd1b7fe10f746792e0d1353fad4ad04e8ebe9 (patch)
tree93137af7af0b073383e0db5ae91cbe301f9bcdd1 /roles/web
parentf448bcbdf07cf988ab50950df95d822f359041db (diff)
downloadansible-dfly-vps-053cd1b7fe10f746792e0d1353fad4ad04e8ebe9.tar.bz2
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 ^_^
Diffstat (limited to 'roles/web')
-rw-r--r--roles/web/templates/sites/liwt.cgit.conf.j26
1 files changed, 3 insertions, 3 deletions
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;