mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2024-12-04 19:40:07 +01:00
22 lines
604 B
Nix
22 lines
604 B
Nix
{ config, values, pkgs, lib, ... }:
|
|
{
|
|
imports = [
|
|
./roundcube.nix
|
|
./snappymail.nix
|
|
];
|
|
|
|
services.nginx.virtualHosts."webmail.pvv.ntnu.no" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
kTLS = true;
|
|
locations = {
|
|
"= /".return = "302 https://webmail.pvv.ntnu.no/roundcube";
|
|
|
|
"/afterlogic_lite".return = "302 https://webmail.pvv.ntnu.no/roundcube";
|
|
"/squirrelmail".return = "302 https://webmail.pvv.ntnu.no/roundcube";
|
|
"/rainloop".return = "302 https://snappymail.pvv.ntnu.no/";
|
|
"/snappymail".return = "302 https://snappymail.pvv.ntnu.no/";
|
|
};
|
|
};
|
|
}
|