summaryrefslogtreecommitdiffstats
path: root/roles/cgit/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/cgit/templates')
-rw-r--r--roles/cgit/templates/cgit.nginx.conf.j219
-rw-r--r--roles/cgit/templates/cgitrc.j221
2 files changed, 40 insertions, 0 deletions
diff --git a/roles/cgit/templates/cgit.nginx.conf.j2 b/roles/cgit/templates/cgit.nginx.conf.j2
new file mode 100644
index 00000000..14256054
--- /dev/null
+++ b/roles/cgit/templates/cgit.nginx.conf.j2
@@ -0,0 +1,19 @@
+server {
+ listen {{ cgit_port }};
+ listen [::]:{{ cgit_port }};
+
+ server_name {{ cgit_hostname }};
+
+ root /usr/share/webapps/cgit;
+
+ try_files $uri @cgit;
+
+ location @cgit {
+ fastcgi_pass unix:/run/fcgiwrap/fcgiwrap.sock;
+ fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
+ fastcgi_param PATH_INFO $uri;
+ fastcgi_param QUERY_STRING $args;
+ fastcgi_param HTTP_HOST $server_name;
+ include fastcgi_params;
+ }
+}
diff --git a/roles/cgit/templates/cgitrc.j2 b/roles/cgit/templates/cgitrc.j2
new file mode 100644
index 00000000..a23e2d0b
--- /dev/null
+++ b/roles/cgit/templates/cgitrc.j2
@@ -0,0 +1,21 @@
+css=/cgit/cgit.css
+logo=/cgit/cgit.png
+
+virtual-root=/
+
+repo.group=personal
+
+root-title={{ cgit_title }}
+root-desc={{ cgit_description }}
+
+clone-prefix={{ cgit_clone_prefix }}
+
+enable-index-links=1
+enable-log-filecount=1
+enable-log-linecount=1
+enable-blame=1
+enable-tree-linenumbers=1
+
+max-stats=year
+
+scan-path={{ cgit_repos_dir }}