Compare commits

...

1 Commits

Author SHA1 Message Date
adriangl 27bfce3657 feat: add radicle to bekkalokk
Eval nix flake / evals (pull_request) Successful in 4m5s
Eval nix flake / evals (push) Successful in 4m43s
2026-05-31 02:19:06 +02:00
2 changed files with 43 additions and 0 deletions
+1
View File
@@ -7,6 +7,7 @@
./services/alps.nix
./services/bluemap.nix
./services/radicle.nix
./services/idp-simplesamlphp
./services/kerberos.nix
./services/mediawiki
+42
View File
@@ -0,0 +1,42 @@
{ config, lib, ... }:
let
domain = "dav.pvv.ntnu.no";
radicalePort = 5232;
in {
services.radicale = {
enable = true;
settings = {
server = {
hosts = [ "127.0.0.1:${toString radicalePort}" ];
};
auth = {
type = "imap";
imap_host = "imap.pvv.ntnu.no";
imap_security = "tls";
};
storage = {
filesystem_folder = "/var/lib/radicale/collections";
};
};
};
services.nginx.virtualHosts."${domain}" = {
forceSSL = true;
enableACME = true;
kTLS = true;
extraConfig = ''
client_max_body_size 128M;
'';
locations."/" = {
proxyPass = "http://127.0.0.1:${toString radicalePort}";
proxyWebsockets = true;
};
};
networking.firewall.allowedTCPPorts = [ radicalePort ];
}