nixos-config/mastus/radicale.nix

39 lines
726 B
Nix
Raw Normal View History

2016-06-18 07:18:36 +00:00
{ config, pkgs, ... }:
let
radicalePort = 8002;
in
{
services.radicale = {
enable = true;
config = ''
[server]
hosts = 127.0.0.1:${toString radicalePort}
ssl = false
dns_lookup = false
[storage]
filesystem_folder = /var/lib/radicale/storage
[auth]
type = IMAP
[rights]
type = owner_only
'';
};
security.acme.certs."gebner.org".extraDomains."radicale.gebner.org" = null;
2019-08-25 16:04:33 +00:00
services.nginx = {
recommendedProxySettings = true;
virtualHosts."radicale.gebner.org" = {
forceSSL = true;
useACMEHost = "gebner.org";
locations."/" = {
proxyPass = "http://127.0.0.1:${toString radicalePort}";
};
};
};
2016-06-18 07:18:36 +00:00
}