src.nth.io/

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git/web/tasks/main.yaml11
-rw-r--r--git/web/templates/cgitrc.j22
2 files changed, 12 insertions, 1 deletions
diff --git a/git/web/tasks/main.yaml b/git/web/tasks/main.yaml
index 1d07e2f..42ea072 100644
--- a/git/web/tasks/main.yaml
+++ b/git/web/tasks/main.yaml
@@ -20,12 +20,23 @@
file: path="/etc/cgit" state="directory"
when: cgit_header_src is defined or cgit_footer_src is defined
+- name: install cgit custom source filter
+ become: yes
+ copy: src="{{cgit_source_filter_src}}" dest="{{cgit_source_filter_path}}" mode="0755"
+ when: cgit_source_filter_src is defined
+ notify: restart fcgiwrap
+
- name: install cgit custom css
become: yes
copy: src="{{cgit_css_src}}" dest="/usr/share/cgit/cgit-custom.css"
when: cgit_css_src is defined
notify: restart nginx
+- name: install cgit favicon
+ become: yes
+ copy: src="{{cgit_favicon_src}}" dest="/usr/share/cgit/favicon.ico"
+ when: cgit_favicon_src is defined
+
- name: install cgit header
become: yes
copy: src="{{cgit_header_src}}" dest="/etc/cgit/header.html"
diff --git a/git/web/templates/cgitrc.j2 b/git/web/templates/cgitrc.j2
index 6e8df0c..ccf5c78 100644
--- a/git/web/templates/cgitrc.j2
+++ b/git/web/templates/cgitrc.j2
@@ -22,7 +22,7 @@ enable-index-links=1
enable-log-filecount=1
enable-log-linecount=1
-source-filter=/usr/lib/cgit/filters/syntax-highlighting.py
+source-filter={{cgit_source_filter_path | default('/usr/lib/cgit/filters/syntax-highlighting.py')}}
about-filter=/usr/lib/cgit/filters/about-formatting.sh
scan-path={{cgit_scan_path}}