1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

gitea dokuwiki nginx support

This commit is contained in:
Jerry Vonau 2019-11-28 05:08:43 -06:00
parent 5f9a604e65
commit e71ae36a98
7 changed files with 56 additions and 4 deletions

View file

@ -10,6 +10,9 @@
#roles/sugarizer/tasks/install.yml: when: sugarizer_enabled | bool and not nginx_enabled | bool
#roles/sugarizer/tasks/install.yml: when: sugarizer_enabled | bool and not nginx_enabled | bool
- name: Enable Gitea for Apache
command: a2ensite gitea.conf
- name: Enable Calibre-Web for Apache
command: a2ensite calibre-web.conf

View file

@ -108,4 +108,26 @@
file:
path: /etc/nginx/conf.d/calibre-web-nginx.conf
state: absent
when: not calibreweb_enabled | bool
when: not calibreweb_enabled
- name: Remove symlink /etc/apache2/sites-enabled/gitea.conf
file:
path: /etc/apache2/sites-enabled/gitea.conf
state: absent
- name: Install /etc/nginx/conf.d/gitea-nginx.conf
template:
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: root
group: root
mode: "{{ item.mode }}"
with_items:
- { src: 'roles/gitea/templates/gitea-nginx.conf.j2', dest: '/etc/nginx/conf.d/gitea-nginx.conf', mode: '0644' }
when: gitea_enabled
- name: Remove nginx support for Gitea
file:
path: /etc/nginx/conf.d/gitea-nginx.conf
state: absent
when: not gitea_enabled

View file

@ -7,6 +7,12 @@
mode: 0644
when: moodle_enabled
- name: Install /etc/nginx/conf.d/dokuwiki-nginx.conf from template
template:
src: dokuwiki-nginx.conf
dest: /etc/nginx/conf.d/dokuwiki-nginx.conf
when: dokuwiki_enabled
- name: Install /etc/nginx/conf.d/elgg-nginx.conf from template
template:
src: elgg-nginx.conf