Radicale: Difference between revisions

imported>Mogria
m fix syntax error, add missing semicolon
imported>Mic92
nicer indentation
Line 6: Line 6:
services.radicale = {
services.radicale = {
     enable = true;
     enable = true;
     config =
     config = ''
        ''
      [server]
        [server]
      # Bind all interfaces on port 5232  
        # Bind all interfaces on port 5232  
      hosts = 0.0.0.0:5232
        hosts = 0.0.0.0:5232
    '';
        '';
};
};
</syntaxhighlight>
</syntaxhighlight>
Line 24: Line 23:
services.radicale = {
services.radicale = {
     enable = true;
     enable = true;
     config =
     config = ''
        ''
      [server]
        [server]
      hosts = 0.0.0.0:5232
        hosts = 0.0.0.0:5232


        [auth]
      [auth]
        type = htpasswd
      type = htpasswd
        htpasswd_filename = /path/to/htpasswd/file/radicale_users
      htpasswd_filename = /path/to/htpasswd/file/radicale_users
        # hash function used for passwords. May be `plain` if you don't want to hash the passwords
      # hash function used for passwords. May be `plain` if you don't want to hash the passwords
        htpasswd_encryption = bcrypt
      htpasswd_encryption = bcrypt
        '';
    '';
};
};
</syntaxhighlight>
</syntaxhighlight>