This repository has no description
795 B
25 lines
1{ config, ... }:
2
3{
4 services.radicale = {
5 enable = true;
6 config = ''
7 [server]
8 hosts = 0.0.0.0:5555
9 [auth]
10 type = htpasswd
11 htpasswd_filename = ${config.krebs.secret.directory}/radicale.htpasswd
12 htpasswd_encryption = plain
13 '';
14 };
15 krebs.iptables.tables.filter.INPUT.rules = [
16 { predicate = "-i retiolum -p tcp --dport 5555"; target = "ACCEPT"; }
17 { predicate = "-i wiregrill -p tcp --dport 5555"; target = "ACCEPT"; }
18 ];
19 #services.nginx.virtualHosts."lassul.us".locations."/radicale/".extraConfig = ''
20 # proxy_pass http://localhost:5555/; # The / is important!
21 # proxy_set_header X-Script-Name /radicale;
22 # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
23 # proxy_pass_header Authorization;
24 #'';
25}