This repository has no description
827 B
31 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 {
17 predicate = "-i retiolum -p tcp --dport 5555";
18 target = "ACCEPT";
19 }
20 {
21 predicate = "-i wiregrill -p tcp --dport 5555";
22 target = "ACCEPT";
23 }
24 ];
25 #services.nginx.virtualHosts."lassul.us".locations."/radicale/".extraConfig = ''
26 # proxy_pass http://localhost:5555/; # The / is important!
27 # proxy_set_header X-Script-Name /radicale;
28 # proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
29 # proxy_pass_header Authorization;
30 #'';
31}