Files
containers/.vib/mediawiki
Alexandra Catalina 293b3c32e4 [bitnami/mediawiki] improve configuration for reverse proxy configs (#64098)
* [bitnami/mediawiki] write server conf at runtime instead of build

we need the `RewriteRule` in the vhost to match `wgArticlePath` in the
application `LocalSettings.php`, which requires that it be modified at startup
in order to respect custom values of `MEDIAWIKI_WIKI_PREFIX`.

Signed-off-by: alexandra catalina <git@garbage.world>

* [bitnami/mediawiki] rm unused web_server_update_app_configuration

Signed-off-by: alexandra catalina <git@garbage.world>

* [bitnami/mediawiki] add MEDIAWIKI_SCRIPT_PATH

Signed-off-by: alexandra catalina <git@garbage.world>

* [bitnami/mediawiki] use MEDIAWIKI_HOST for canonical, not wgServer

setting $wgServer to the hostname results in all generated links using that
host, instead of being relative URLs.  this breaks deployments run behind a
reverse proxy if the proxy port/path differs from MediaWiki's.

Signed-off-by: alexandra catalina <git@garbage.world>

* Revert "[bitnami/mediawiki] rm unused web_server_update_app_configuration"

This reverts commit bc404152d8797caed24c9933a2131272f3b7ab3a.

Signed-off-by: alexandra catalina <git@garbage.world>

* [bitnami/mediawiki] add back web_server_update_app_configuration

Signed-off-by: alexandra catalina <git@garbage.world>

* [bitnami/mediawiki] remove vhost test

this file is now generated at run-time

Signed-off-by: alexandra catalina <git@garbage.world>

* [bitnami/mediawiki] default MEDIAWIKI_SCRIPT_PATH to `/`

That matches the current behavior and avoids breaking existing installations

Signed-off-by: alexandra catalina <git@garbage.world>

---------

Signed-off-by: alexandra catalina <git@garbage.world>
2024-05-21 10:29:17 +02:00
..