mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2025-12-31 12:48:23 +01:00
Compare commits
1 Commits
fix-bluema
...
alps
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
843f8d6a02 |
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
(fp /base)
|
(fp /base)
|
||||||
|
|
||||||
|
./services/alps.nix
|
||||||
./services/bluemap.nix
|
./services/bluemap.nix
|
||||||
./services/idp-simplesamlphp
|
./services/idp-simplesamlphp
|
||||||
./services/kerberos.nix
|
./services/kerberos.nix
|
||||||
|
|||||||
22
hosts/bekkalokk/services/alps.nix
Normal file
22
hosts/bekkalokk/services/alps.nix
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{ 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}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user