mirror of https://gitlab.crans.org/nounous/nixos
43 lines
790 B
Nix
43 lines
790 B
Nix
{ config, ... }:
|
|
{
|
|
name = "mediakiwi";
|
|
description = "Wiki du Crans";
|
|
id = 144;
|
|
|
|
enable = true;
|
|
|
|
networking = {
|
|
srv-nat.enable = true;
|
|
};
|
|
|
|
reverseproxy.vhosts = {
|
|
"mediawiki" = {
|
|
anubisConfig = [
|
|
{
|
|
name = "allow-mediawiki-images";
|
|
path_regex = "^/w/images/.*";
|
|
action = "ALLOW";
|
|
}
|
|
{
|
|
name = "allow-mediawiki-api";
|
|
path_regex = "^/w/api.php.*";
|
|
action = "ALLOW";
|
|
}
|
|
{
|
|
name = "challenge-other";
|
|
path_regex = ".*";
|
|
action = "CHALLENGE";
|
|
}
|
|
];
|
|
proxyPass = config.networking.adm.ipv4.address;
|
|
aliases = [ "mediakiwi" ];
|
|
};
|
|
};
|
|
|
|
monitoring = {
|
|
nginx.enable = true;
|
|
};
|
|
|
|
resticClient.when = "06:47";
|
|
}
|