mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2025-12-31 04:38:23 +01:00
23 lines
464 B
Nix
23 lines
464 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.services.alps;
|
|
in
|
|
{
|
|
services.alps = {
|
|
enable = true;
|
|
theme = "sourcehut";
|
|
smtps.host = "smtp.pvv.ntnu.no";
|
|
imaps.host = "imap.pvv.ntnu.no";
|
|
bindIP = "127.0.0.1";
|
|
};
|
|
|
|
services.nginx.virtualHosts."alps.pvv.ntnu.no" = lib.mkIf cfg.enable {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
kTLS = true;
|
|
locations."/" = {
|
|
proxyPass = "http://${cfg.bindIP}:${toString cfg.port}";
|
|
};
|
|
};
|
|
}
|