diff options
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 | ||