1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

MediaWiki + Sugarizer + WordPress w/o Apache

This commit is contained in:
root 2021-07-06 16:25:13 -04:00
parent 8ed105a02b
commit 079e5e04e0
14 changed files with 15 additions and 42 deletions

View file

@ -93,12 +93,6 @@
regexp: '^\$wgServer ='
line: '$wgServer = "//" . $_SERVER["HTTP_HOST"];'
- name: 'Install from template: /etc/{{ apache_conf_dir }}/mediawiki.conf -- for http://box{{ mediawiki_url }}'
template:
src: mediawiki.conf.j2
dest: "/etc/{{ apache_conf_dir }}/mediawiki.conf" # apache2/sites-available
when: apache_installed is defined
# RECORD MediaWiki AS INSTALLED

View file

@ -24,13 +24,8 @@
when: mediawiki_installed is undefined
- name: Enable/Disable/Restart Apache if primary
include_tasks: apache.yml
when: not nginx_enabled
- name: Enable/Disable/Restart NGINX if primary
- name: Enable/Disable/Restart NGINX
include_tasks: nginx.yml
when: nginx_enabled
- name: Add 'mediawiki' variable values to {{ iiab_ini_file }}

View file

@ -15,7 +15,7 @@
- name: Enable http://box/sugarizer if sugarizer_enabled, by installing {{ nginx_conf_dir }}/sugarizer-nginx.conf from template
template:
src: sugarizer-nginx.conf
src: sugarizer-nginx.conf.j2
dest: "{{ nginx_conf_dir }}/sugarizer-nginx.conf" # /etc/nginx/conf.d
when: sugarizer_enabled

View file

@ -158,13 +158,6 @@
systemd:
daemon_reload: yes
# 2020-10-30: PR #2604 tries a cleaner layout, with NGINX only
#- name: "Install from template: /etc/{{ apache_conf_dir }}/sugarizer.conf"
# template:
# src: sugarizer.conf.j2
# dest: "/etc/{{ apache_conf_dir }}/sugarizer.conf" # apache2/sites-available
# when: apache_installed is defined
# 3 [WAS 4] STANZAS ADDED BELOW JAN/FEB 2019, HOPING THIS MIGHT "JUST WORK"
# WITH FUTURE UPGRADES BEYOND SUGARIZER 1.1?!
#

View file

@ -3,7 +3,8 @@
when: sugarizer_installed is undefined
- include_tasks: enable-or-disable.yml
- name: Enable/Disable/Restart NGINX
include_tasks: enable-or-disable.yml
- name: Add 'sugarizer' variable values to {{ iiab_ini_file }}

View file

@ -1,9 +0,0 @@
# sugarizer_port is set to 8089 in /opt/iiab/iiab/vars/default_vars.yml
# If you need to change this, edit /etc/iiab/local_vars.yml prior to installing
location /sugarizer {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name /sugarizer;
proxy_pass http://127.0.0.1:8089;
}

View file

@ -0,0 +1,10 @@
# sugarizer_port is set to 8089 in /opt/iiab/iiab/vars/default_vars.yml
# If you need to change this, edit /etc/iiab/local_vars.yml prior to installing
location /sugarizer {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name /sugarizer;
proxy_pass http://127.0.0.1:{{ sugarizer_port }};
}

View file

@ -112,12 +112,6 @@
group: "{{ apache_user }}" # DO WE REALLY STILL WANT THIS FOR NGINX?
mode: '0660' # Others strongly recommend '0600' (or do PHP/Apache/NGINX really need group read & write permissions?)
- name: Install /etc/{{ apache_conf_dir }}/wordpress.conf from template, for http://box{{ wp_url }} via Apache
template:
src: wordpress.conf.j2
dest: "/etc/{{ apache_conf_dir }}/wordpress.conf"
when: apache_installed is defined
# RECORD WordPress AS INSTALLED

View file

@ -30,13 +30,8 @@
when: wordpress_installed is undefined
- name: Enable/Disable/Restart Apache if primary
include_tasks: apache.yml
when: not nginx_enabled
- name: Enable/Disable/Restart NGINX if primary
- name: Enable/Disable/Restart NGINX
include_tasks: nginx.yml
when: nginx_enabled
- name: Add 'wordpress' variable values to {{ iiab_ini_file }}