mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
move dokuwiki shim
This commit is contained in:
parent
79c5c34182
commit
31522b22cb
2 changed files with 17 additions and 0 deletions
|
@ -11,11 +11,25 @@
|
||||||
state: absent
|
state: absent
|
||||||
when: not dokuwiki_enabled and is_debuntu
|
when: not dokuwiki_enabled and is_debuntu
|
||||||
|
|
||||||
|
- name: Install {{ nginx_config_dir }}/dokuwiki-nginx.conf SHIM from template
|
||||||
|
template:
|
||||||
|
src: dokuwiki-nginx.conf
|
||||||
|
dest: "{{ nginx_config_dir }}/dokuwiki-nginx.conf"
|
||||||
|
when: dokuwiki_enabled and nginx_enabled
|
||||||
|
|
||||||
- name: Restart Apache ({{ apache_service }}) to enable/disable DokuWiki's http://box/wiki
|
- name: Restart Apache ({{ apache_service }}) to enable/disable DokuWiki's http://box/wiki
|
||||||
systemd:
|
systemd:
|
||||||
name: "{{ apache_service }}"
|
name: "{{ apache_service }}"
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
|
when: apache_enabled
|
||||||
|
|
||||||
|
- name: Restart nginx to enable/disable DokuWiki's http://box/wiki
|
||||||
|
systemd:
|
||||||
|
name: nginx
|
||||||
|
daemon_reload: yes
|
||||||
|
state: restarted
|
||||||
|
when: nginx_enabled
|
||||||
|
|
||||||
- name: Add 'dokuwiki' variable values to {{ iiab_ini_file }}
|
- name: Add 'dokuwiki' variable values to {{ iiab_ini_file }}
|
||||||
ini_file:
|
ini_file:
|
||||||
|
|
3
roles/dokuwiki/templates/dokuwiki-nginx.conf
Normal file
3
roles/dokuwiki/templates/dokuwiki-nginx.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
location {{ dokuwiki_url }} {
|
||||||
|
proxy_pass http://127.0.0.1:{{ apache_port }}{{ dokuwiki_url }};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue