diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-12-22 11:53:14 +0000 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-12-22 11:53:14 +0000 |
commit | 2cbeca09fc9e2a53b0c1d5881f91d3d22518f16b (patch) | |
tree | bb2cae32e858a98ad5082cebbd7291a72911990c /roles | |
parent | a95e4d859bd3f108829f8e58ed7a6df025eb1151 (diff) | |
download | rules-2cbeca09fc9e2a53b0c1d5881f91d3d22518f16b.tar.gz |
roles/cgit: Enable cache
Diffstat (limited to 'roles')
-rw-r--r-- | roles/cgit/tasks/main.yml | 8 | ||||
-rw-r--r-- | roles/cgit/templates/cgitrc.j2 | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/roles/cgit/tasks/main.yml b/roles/cgit/tasks/main.yml index 0f51d0c..4559708 100644 --- a/roles/cgit/tasks/main.yml +++ b/roles/cgit/tasks/main.yml @@ -5,6 +5,14 @@ - lowdown state: present +- name: create cgit cache directory + file: + path: "{{ cgit_chroot_dir }}/cache/cgit" + owner: www + group: www + mode: 0750 + state: directory + - name: generate cgit configuration files template: src: "{{ item.template }}" diff --git a/roles/cgit/templates/cgitrc.j2 b/roles/cgit/templates/cgitrc.j2 index 40b4b07..2b01ef4 100644 --- a/roles/cgit/templates/cgitrc.j2 +++ b/roles/cgit/templates/cgitrc.j2 @@ -6,6 +6,10 @@ logo={{ cgit__logo }} favicon={{ cgit__favicon }} footer={{ cgit__footer }} +# cache +cache-root=/cache/cgit +cache-size=100 + # readme readme=:README.md readme=:README.org |