Jump to content

MediaWiki: Difference between revisions

m
syntax highlighting and fix a typo
imported>Alyaeanyx
mNo edit summary
imported>Wackbyte
m (syntax highlighting and fix a typo)
Line 1: Line 1:
[https://www.mediawiki.org/wiki/MediaWiki MediaWiki] is available as a [[Module|NixOS module]].
[https://www.mediawiki.org/wiki/MediaWiki MediaWiki] is available as a [[Module|NixOS module]].
Sample configuration:
Sample configuration:
<syntaxhighlight>
<syntaxhighlight lang="nix">
services.mediawiki = {
services.mediawiki = {
   enable = true;
   enable = true;
Line 27: Line 28:


If you are using another web server (like Nginx), you can configure MediaWiki for a reverse proxy with the <code>services.mediawiki.virtualHost.listen</code> option:
If you are using another web server (like Nginx), you can configure MediaWiki for a reverse proxy with the <code>services.mediawiki.virtualHost.listen</code> option:
<syntaxhighlight>
 
<syntaxhighlight lang="nix">
services.mediawiki.virtualHost.listen = [
services.mediawiki.virtualHost.listen = [
   ip = "127.0.0.1";
   {
  port = 8080;
    ip = "127.0.0.1";
  ssl = false;
    port = 8080;
} ];
    ssl = false;
  }
];
</syntaxhighlight>
</syntaxhighlight>


Anonymous user