diff options
author | Christian Franke <nobody@nowhere.ws> | 2015-08-28 15:38:36 +0200 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2015-08-28 15:38:36 +0200 |
commit | 1eb35a1e69d9a9f3f43340b9ea46d95bb2c1a0e8 (patch) | |
tree | c2f50624ccf38999896e66c9f270a96ee4cbb5cb /roles/cgit/templates/server.conf.j2 | |
parent | 6474bb9964d8a57b050e597a451fa40a3e5148f0 (diff) |
Add cgit role - git webfrontend
Diffstat (limited to 'roles/cgit/templates/server.conf.j2')
-rw-r--r-- | roles/cgit/templates/server.conf.j2 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/roles/cgit/templates/server.conf.j2 b/roles/cgit/templates/server.conf.j2 new file mode 100644 index 0000000..bd9de27 --- /dev/null +++ b/roles/cgit/templates/server.conf.j2 @@ -0,0 +1,19 @@ +ServerAdmin nobody-wolpertinger@nowhere.ws +ServerName {{ git_server_name }} + +# Serve static cgit files directly +Alias /static /var/www/{{ git_server_name }}/static +Alias /robots.txt /var/www/{{ git_server_name }}/robots.txt +<Directory /var/www/{{ git_server_name }}> + AllowOverride None + Options FollowSymlinks + Require all granted +</Directory> + +# Dispatch other requests to CGI +ScriptAlias / "/usr/lib/cgit/cgit.cgi/" +<Directory /usr/lib/cgit> + AllowOverride None + Options ExecCGI FollowSymlinks + Require all granted +</Directory> |