MediaWiki: Difference between revisions

From NixOS Wiki
imported>Onny
Add links to other web-based wiki software
imported>Onny
mNo edit summary
Line 57: Line 57:
== See also ==
== See also ==


* [[DokuWiki]], simple PHP- and web-based wiki software which uses file based storage for its content.
* [[Dokuwiki]], simple PHP- and web-based wiki software which uses file based storage for its content.
* [[Outline]], a modern web based wiki and knowledge base for teams.
* [[Outline]], a modern web based wiki and knowledge base for teams.


[[Category:Guide]]
[[Category:Guide]]
[[Category:Web Applications]]
[[Category:Web Applications]]

Revision as of 16:44, 19 January 2023

MediaWiki (wikipedia:en:MediaWiki) is available as a module.

configuration examples

small configuration

services.mediawiki = {
  enable = true;
  name = "Sample MediaWiki instance";
  virtualHost = {
    hostName = "example.com";
    adminAddr = "admin@example.com";
  };
  passwordFile = "/var/mediawiki/passwordFile"; # put the initial password for the admin account here
  extraConfig = ''
    # Disable anonymous editing
    $wgGroupPermissions['*']['edit'] = false;
  '';

  extensions = {
    VisualEditor = pkgs.fetchzip {
      url = "https://extdist.wmflabs.org/dist/extensions/VisualEditor-REL1_37-3aeea63.tar.gz";
      sha256 = "sha256:0y7yysnm64vclyj0nh18ibsbrwsycdi7f8mf8j1b991qggqnclys";
    };
  };
};

web server

By default, the services.mediawiki module creates a services.httpd.virtualHost which can be configured via the services.mediawiki.virtualHost submodule.

If you are using another web server (like Nginx), you can configure MediaWiki for a reverse proxy with the services.mediawiki.virtualHost.listen option:

services.mediawiki.virtualHost.listen = [
  {
    ip = "127.0.0.1";
    port = 8080;
    ssl = false;
  }
];

See also

  • Dokuwiki, simple PHP- and web-based wiki software which uses file based storage for its content.
  • Outline, a modern web based wiki and knowledge base for teams.