The collaborative editing software that runs Wikipedia https://gerrit.wikimedia.org/g/mediawiki/core
This repository has been archived on 2021-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
decentral1se f4f519eda3
continuous-integration/drone/push Build is failing Details
Revert internal network change (see coop-cloud/organising#62)
2021-07-15 16:08:09 +02:00
.drone.yml Use new image namespace 2021-06-21 12:31:32 +02:00
.env.sample Tweak DB initialisation 2021-02-17 18:21:51 +02:00
.gitignore Ignore live .envrc 2020-09-06 14:00:55 +02:00
LocalSettings.php.tmpl Drop default header 2021-02-16 17:00:43 +01:00
README.md Follow new exciting README standard 2021-03-02 18:38:38 +02:00
abra.sh Bump LOCAL_SETTINGS_CONF_VERSION 2021-04-04 13:39:14 +02:00
compose.openid.yml Ad SECRET_ to secret names so abra can find them 2020-12-27 15:55:26 +02:00
compose.simplesaml.yml Auto-add service labels 2021-04-04 13:39:38 +02:00
compose.yml Revert internal network change (see coop-cloud/organising#62) 2021-07-15 16:08:09 +02:00
composer.local.json.tmpl Rename composer local file 2020-10-19 16:53:12 +02:00
entrypoint.sh.tmpl Tweak DB initialisation 2021-02-17 18:21:51 +02:00
entrypoint.simplesaml.sh.tmpl Rename services, add EXTRA_DOMAINS 2020-10-06 01:32:46 +02:00
php.ini.tmpl Add template file ending 2020-10-30 14:26:58 +01:00
renovate.json Add renovate.json 2020-09-14 20:02:21 +00:00

README.md

Mediawiki

Build Status

Mediawiki version 1.35

  • Category: Apps
  • Status: ❸🍎
  • Image: mediawiki, ❶💚, upstream
  • Healthcheck: No
  • Backups: Yes
  • Email: ❶💚
  • Tests: ❷💛
  • SSO: ❷💛 (OAuth, SAML)

Basic usage

  1. Set up Docker Swarm and abra
  2. Deploy coop-cloud/traefik
  3. abra app new mediawiki --secrets (optionally with --pass if you'd like to save secrets in pass)
  4. abra app YOURAPPDOMAIN config - be sure to change $DOMAIN to something that resolves to your Docker swarm box
  5. abra app YOURAPPDOMAIN deploy
  6. Create an initial admin user: abra app YOURAPPDOMAIN run app php /var/www/html/maintenance/createAndPromote.php --sysop YourUsername YourPassword

Email

  1. abra app YOURAPPDOMAIN config - edit .envrc and uncomment the SMTP lines. Set SMTP_HOST to postfix_relay for coop-cloud/postfix_relay, or mailu_front for coop-cloud/mailu (assuming default stack names)
  2. For postfix_relay, add the domain to your email config EXTRA_SENDER_DOMAINS in postfix_relay. This doesn't seem to be required for Mailu.
  3. abra app YOURAPPDOMAIN deploy

Single Sign On

SimpleSAMLphp

This app includes optional SAML Single Sign On using SimpleSAMLphp and Mediawiki's Extension:SimpleSAMLphp, based on the venatorfox/simplesamlphp image.

NOTE: currently, if you enable SAML then it'll disable Mediawiki's own user account system. Patches to make this configurable are welcome!

  1. abra app YOURAPPDOMAIN config - uncomment lines in the SAML section (including COMPOSE_FILE)
  2. Generate secrets: (add --pass if you want to store secrets in pass)
    abra app YOURAPPDOMAIN secret generate saml_admin_password v1
    abra app YOURAPPDOMAIN secret generate saml_secret_salt v1 "pwgen -n 64 1"
    
  3. abra app YOURAPPDOMAIN deploy
  4. Copy your SimpleSAMLphp metadata and certificates to the container (assuming you have local metadata and cert folders:
    abra app YOURAPPDOMAIN cp metadata simplesaml:/var/simplesamlphp/
    abra app YOURAPPDOMAIN cp cert simplesaml:/var/simplesamlphp/
    
  5. You can log into SimpleSAMLphp using the password you generated at https://$DOMAIN/simplesaml/ and test authentication
  6. Edit SimpleSAMLphp's config.php and change store.sql.dsn:
    abra app YOURAPPDOMAIN run simplesaml vi /var/simplesamlphp/config/config.php
    # find 'store.sql.dsn' and edit to:
    # 'sqlite:/var/simplesamlphp/data/simplesamlphp.sq3'
    

OpenID Connect

  1. abra app YOURAPPDOMAIN config - uncomment lines in the OPENID section (including COMPOSE_FILE)
  2. Store your Keycloak-generated client secret in Docker:
abra app YOURAPPDOMAIN secret insert openid_client_secret v1 put-your-secret-here
  1. abra app YOURAPPDOMAIN deploy

License

MIT License