Add Radicale
This commit is contained in:
parent
1cb4dd1813
commit
20b37c21e9
|
@ -10,6 +10,7 @@
|
|||
../shared/services/gitweb.nix
|
||||
../shared/services/miniflux.nix
|
||||
../shared/services/nginx.nix
|
||||
../shared/services/radicale.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
|
@ -27,6 +28,7 @@
|
|||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
apacheHttpd # Because we need htpasswd for Radicale, annoyingly
|
||||
cifs-utils # To mount Storage Box
|
||||
git
|
||||
git-crypt
|
||||
|
|
|
@ -34,6 +34,14 @@
|
|||
proxyPass = "http://127.0.0.1:8080";
|
||||
};
|
||||
};
|
||||
|
||||
virtualHosts."cal.tsvallender.co.uk" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:5232";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
security.acme = {
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
{ config, pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
services.radicale = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
hosts = [ "0.0.0.0:5232" "[::]:5232" ];
|
||||
};
|
||||
auth = {
|
||||
type = "htpasswd";
|
||||
htpasswd_filename = "/var/lib/radicale/users";
|
||||
htpasswd_encryption = "bcrypt";
|
||||
};
|
||||
storage = {
|
||||
filesystem_folder = "/var/lib/radicale/collections";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue