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
3wc bae33cacd9 Make SimpleSAML optional using separate compose 2020-09-18 23:35:20 +02:00
.envrc.sample Make SimpleSAML optional using separate compose 2020-09-18 23:35:20 +02:00
.gitignore Ignore live .envrc 2020-09-06 14:00:55 +02:00
LICENSE Initial import 2020-09-05 01:59:00 +02:00
LocalSettings.php.tmpl Merge branch 'main' into simplesaml 2020-09-18 20:42:07 +02:00
README.md Make SimpleSAML optional using separate compose 2020-09-18 23:35:20 +02:00
compose.simplesaml.yml Make SimpleSAML optional using separate compose 2020-09-18 23:35:20 +02:00
compose.yml Make SimpleSAML optional using separate compose 2020-09-18 23:35:20 +02:00
entrypoint.sh.tmpl Working SimpleSAML config 2020-09-16 22:19:23 +02:00
entrypoint.simplesaml.sh.tmpl Working SimpleSAML config 2020-09-16 22:19:23 +02:00
htaccess.tmpl Prettify URLs 2020-09-08 02:09:52 +02:00
renovate.json Add renovate.json 2020-09-14 20:02:21 +00:00

README.md

Mediawiki

Mediawiki version 1.32.1

Requires Docker version 1.11.2 or above to run.

Based on mediawiki-ve-bundle.

  1. Set up Docker Swarm and abra
  2. Deploy compose-stacks/traefik
  3. cp .envrc.sample .envrc
  4. Edit .envrc - be sure to change $DOMAIN to something that resolves to your Docker swarm box
  5. direnv allow (or . .envrc)
  6. abra secret_generate db_password v1 && abra secret_generate db_root_password v2
  7. abra secret_generate mediawiki_secret_key "pwgen -n 64 1"
  8. abra deploy
  9. abra service_run mediawiki /bin/bash to open a shell
  10. php /var/www/html/maintenance/createAndPromote.php YourUsername YourPassword

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. Edit .envrc and uncomment lines in the SAML section (including COMPOSE)
  2. direnv allow
  3. Generate secrets:
    abra secret_generate saml_admin_password v1
    abra secret_generate saml_secret_key v1 "pwgen -n 64 1"
    
  4. abra deploy
  5. Copy your SimpleSAMLphp metadata and certificates to the container (assuming you have local metadata and cert folders:
    abra cp metadata simplesamlphp:/var/simplesamlphp/
    abra cp cert simplesamlphp:/var/simplesamlphp/
    
  6. You can log into SimpleSAMLphp using the password you generated at https://$DOMAIN/simplesaml/ and test authentication
  7. Edit SimpleSAMLphp's config.php and change store.sql.dsn:
    abra run simplesamlphp vim 
    # find 'store.sql.dsn' and edit to:
    # 'sqlite:/var/simplesamlphp/data/simplesamlphp.sq3'
    

License

MIT License