1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00
iiab/roles/nginx/README.md

49 lines
3.1 KiB
Markdown
Raw Normal View History

### Transition to NGINX
2020-01-11 17:48:09 +00:00
2020-02-01 23:52:23 +00:00
1. Initial testing strategy (December 2019 - February 2020) is to move NGINX to [port 80](https://github.com/iiab/iiab/wiki/IIAB-Networking#list-of-ports--services), and proxy everything to Apache on [port 8090](https://github.com/iiab/iiab/wiki/IIAB-Networking#list-of-ports--services) — creating "Shims" for each IIAB App/Service in *Section iii.* below.
2020-01-23 23:10:53 +00:00
2020-01-23 23:48:37 +00:00
Until "Native" NGINX is later implemented for that IIAB App/Service — allowing it to move up to *Section ii.* below.
2020-01-23 23:10:53 +00:00
And potentially later moving it up to *Section i.* if its Apache support is dropped!
2020-01-24 16:45:57 +00:00
(Background: IIAB Apps/Services are generally [Ansible roles](https://github.com/iiab/iiab/wiki/IIAB-Contributors-Guide#ansible) that live in [/opt/iiab/iiab/roles](https://github.com/iiab/iiab/tree/master/roles))
2020-01-12 06:57:00 +00:00
2020-01-11 17:48:09 +00:00
2. Without PHP available via FastCGI, any function at all for PHP-based applications validates NGINX.
2020-01-12 06:57:00 +00:00
2020-02-05 00:55:15 +00:00
3. Current state of IIAB App/Service migrations as of 2020-02-04:
2020-01-12 06:57:00 +00:00
2020-01-23 23:48:37 +00:00
1. These support "Native" NGINX but ***NOT*** Apache
2020-01-11 17:59:05 +00:00
* Admin Console
2020-01-23 23:10:53 +00:00
* captiveportal
2020-02-01 23:52:23 +00:00
* IIAB documentation (http://box/info)
2020-01-11 17:48:09 +00:00
* osm-vector-maps
2020-02-01 23:52:23 +00:00
* OER2Go/RACHEL modules
2020-02-05 00:55:15 +00:00
* usb-lib [*]
2020-01-12 06:57:00 +00:00
2020-01-24 16:31:50 +00:00
2. These support "Native" NGINX ***AND*** Apache, a.k.a. "dual support" for legacy testing (if suitable "Shims" from *Section iii.* below are preserved!) Both "Native" NGINX and "Shim" proxying from NGINX to Apache port 8090 *cannot be enabled simultaneously* for these IIAB Apps/Service. But if you want to attempt their "Shim" proxying legacy testing mode, change your *primary web server* over to Apache by setting `nginx_enabled: False` in [/etc/iiab/local_vars.yml](http://wiki.laptop.org/go/IIAB/FAQ#What_is_local_vars.yml_and_how_do_I_customize_it.3F) (which will [auto-enable Apache](../0-init/tasks/main.yml#L40-L44) for your testing).
2020-01-23 23:10:53 +00:00
* awstats
2020-01-11 17:48:09 +00:00
* calibre-web
* gitea
2020-02-05 00:55:15 +00:00
* kiwix [*]
2020-01-11 17:48:09 +00:00
* kolibri
2020-01-23 23:10:53 +00:00
* mediawiki
* munin
2020-01-11 17:48:09 +00:00
* sugarizer
2020-01-23 23:10:53 +00:00
* wordpress
2020-01-12 06:57:00 +00:00
2020-01-24 16:31:50 +00:00
3. These support Apache but ***NOT*** "Native" NGINX. They use a "Shim" to [proxy_pass](https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/) from NGINX to Apache on port 8090. See [roles/0-init/tasks/main.yml#L40-L44](../0-init/tasks/main.yml#L40-L44) for a list of these IIAB Apps/Services, that auto-enable Apache.
2020-01-11 17:48:09 +00:00
* elgg
* lokole
* moodle
2020-02-05 00:55:15 +00:00
* nextcloud ([PR #2119](https://github.com/iiab/iiab/pull/2119)) [*]
2020-01-23 23:10:53 +00:00
* nodered
2020-01-12 06:57:00 +00:00
2020-02-05 00:55:15 +00:00
4. These each run their own web server or non-web / backend services, e.g. off of their own [unique port(s)](https://github.com/iiab/iiab/wiki/IIAB-Networking#list-of-ports--services) (IIAB home pages link directly to these destinations). In future we'd like mnemonic URL's for all of these: (e.g. http://box/calibre, http://box/archive, http://box/kalite)
* calibre (menu goes directly to port 8080) [*]
2020-01-23 23:10:53 +00:00
* internetarchive (menu goes directly to port 4244, [PR #2120](https://github.com/iiab/iiab/pull/2120))
2020-02-05 00:55:15 +00:00
* kalite (menu goes directly to ports 8006-8008) [*]
* minetest [*]
* openvpn [*]
* pbx
[*] Apache, NGINX and the 7 starred roles above could use improvement as of 2020-02-04.