pvv-nixos-config/hosts/bekkalokk/services/webmail/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
604 B
Nix
Raw Normal View History

{ config, values, pkgs, lib, ... }:
{
imports = [
./roundcube.nix
2024-05-25 23:44:29 +02:00
./snappymail.nix
];
services.nginx.virtualHosts."webmail.pvv.ntnu.no" = {
forceSSL = true;
enableACME = true;
2024-04-10 22:01:19 +02:00
kTLS = true;
locations = {
"= /".return = "302 https://webmail.pvv.ntnu.no/roundcube";
2024-05-25 23:44:29 +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/";
};
};
}