mirror of https://gitlab.crans.org/nounous/nixos
30 lines
683 B
Nix
30 lines
683 B
Nix
{ config, lib, ... }:
|
|
{
|
|
name = "periodique";
|
|
description = "Frontend Matrix du Crans (element)";
|
|
id = 118;
|
|
|
|
enable = true;
|
|
|
|
networking = {
|
|
srv-nat.enable = true;
|
|
};
|
|
|
|
reverseproxy.vhosts = {
|
|
"element".proxyPass = config.networking.adm.ipv4.address;
|
|
"matrix-to".serveLocalFiles = lib.fetchFromCrans {
|
|
repo = "matrixto";
|
|
rev = "bd639c5e0d7664dcd44d07ef70abb5f59919f714";
|
|
hash = "sha256-kiK4lGF8RCioKYWoM8CPiDLuESxenXQvo33ns1hDMwc=";
|
|
};
|
|
};
|
|
|
|
monitoring = {
|
|
nginx.enable = true;
|
|
};
|
|
|
|
publicSsh = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHTdfSIL3AWIv0mjRDam6E/qsjoqwJ8QSm1Cb0xqs1s1 root@periodique";
|
|
|
|
resticClient.when = "02:56";
|
|
}
|