src.nth.io/

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--git/web/tasks/main.yaml6
-rw-r--r--git/web/templates/cgitrc.j22
2 files changed, 7 insertions, 1 deletions
diff --git a/git/web/tasks/main.yaml b/git/web/tasks/main.yaml
index 1d07e2f..1e44ea6 100644
--- a/git/web/tasks/main.yaml
+++ b/git/web/tasks/main.yaml
@@ -20,6 +20,12 @@
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"
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}}