diff options
author | op <[email protected]> | 2024-05-17 09:31:26 +0100 |
---|---|---|
committer | op <[email protected]> | 2024-05-17 09:31:26 +0100 |
commit | bede6932a527086b304017e2e0d0295f661efd9a (patch) | |
tree | 59ea73a70bdccce10079cb26b4e55da0de9fc826 /hosts/laurel/configuration.nix | |
parent | ed0965f80620c7183a863730cfa4282db4aaa777 (diff) |
Diffstat (limited to 'hosts/laurel/configuration.nix')
-rw-r--r-- | hosts/laurel/configuration.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/hosts/laurel/configuration.nix b/hosts/laurel/configuration.nix index a2559ae..84e5a83 100644 --- a/hosts/laurel/configuration.nix +++ b/hosts/laurel/configuration.nix | |||
@@ -167,6 +167,24 @@ | |||
167 | }; | 167 | }; |
168 | }; | 168 | }; |
169 | 169 | ||
170 | services.radicale = { | ||
171 | enable = true; | ||
172 | settings = { | ||
173 | server.hosts = [ "0.0.0.0:5232" ]; | ||
174 | auth = { | ||
175 | type = "htpasswd"; | ||
176 | htpasswd_filename = "/etc/radicale/users"; | ||
177 | htpasswd_encryption = "bcrypt"; | ||
178 | }; | ||
179 | }; | ||
180 | }; | ||
181 | services.nginx.virtualHosts."radicale.laurel" = { | ||
182 | listen = [{ port = 80; addr = "0.0.0.0"; }]; | ||
183 | locations."/" = { | ||
184 | proxyPass = "http://127.0.0.1:5232"; | ||
185 | }; | ||
186 | }; | ||
187 | |||
170 | 188 | ||
171 | nix.settings.experimental-features = [ "nix-command" "flakes" ]; | 189 | nix.settings.experimental-features = [ "nix-command" "flakes" ]; |
172 | 190 | ||