mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: adds radicale service
This commit is contained in:
parent
71e79e2e11
commit
46de81538f
1 changed files with 35 additions and 0 deletions
35
modules/services/radicale.nix
Normal file
35
modules/services/radicale.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.radicale = {
|
||||
enable = true;
|
||||
settings = {
|
||||
server.hosts = [ "0.0.0.0:5232" ];
|
||||
auth = {
|
||||
type = "htpasswd";
|
||||
htpasswd_filename = "/home/liv/radicaleusers";
|
||||
htpasswd_encryption = "bcrypt";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# services.nginx = {
|
||||
# enable = true;
|
||||
# recommendedProxySettings = true;
|
||||
# recommendedTlsSettings = true;
|
||||
# virtualHosts = {
|
||||
# "calendar.liv.town" = {
|
||||
# forceSSL = true;
|
||||
# enableACME = true;
|
||||
# # locations."/radicale/" = {
|
||||
# locations."/" = {
|
||||
# proxyPass = "http://127.0.0.1:5232/";
|
||||
# extraConfig = ''
|
||||
# # proxy_set_header X-Script-Name /radicale;
|
||||
# proxy_set_header X-Script-Name /;
|
||||
# proxy_pass_header Authorization;
|
||||
# '';
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue