2023-11-26 05:04:49 +01:00
|
|
|
{ config, values, pkgs, lib, ... }:
|
2023-11-25 21:23:06 +01:00
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./roundcube.nix
|
2024-05-25 23:44:29 +02:00
|
|
|
./snappymail.nix
|
2023-11-25 21:23:06 +01:00
|
|
|
];
|
2023-11-26 05:04:49 +01:00
|
|
|
|
2024-04-10 23:31:04 +02:00
|
|
|
services.nginx.virtualHosts."webmail.pvv.ntnu.no" = {
|
2023-11-26 05:04:49 +01:00
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
2024-04-10 22:01:19 +02:00
|
|
|
kTLS = true;
|
2024-04-11 10:47:13 +02:00
|
|
|
locations = {
|
|
|
|
"= /".return = "302 https://webmail.pvv.ntnu.no/roundcube";
|
2024-05-25 23:44:29 +02:00
|
|
|
|
2024-04-11 10:47:13 +02:00
|
|
|
"/afterlogic_lite".return = "302 https://webmail.pvv.ntnu.no/roundcube";
|
|
|
|
"/squirrelmail".return = "302 https://webmail.pvv.ntnu.no/roundcube";
|
2024-05-25 23:44:29 +02:00
|
|
|
"/rainloop".return = "302 https://snappymail.pvv.ntnu.no/";
|
|
|
|
"/snappymail".return = "302 https://snappymail.pvv.ntnu.no/";
|
2023-11-26 05:04:49 +01:00
|
|
|
};
|
|
|
|
};
|
2023-11-25 21:23:06 +01:00
|
|
|
}
|