radicale
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, inputs, lib, host, ... }:
|
{ pkgs, inputs, host, ... }:
|
||||||
{
|
{
|
||||||
imports = ([
|
imports = ([
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
@@ -43,6 +43,7 @@
|
|||||||
./system-modules/postgres.nix
|
./system-modules/postgres.nix
|
||||||
./system-modules/nx2site/proxy.nix
|
./system-modules/nx2site/proxy.nix
|
||||||
./system-modules/nx2site/gitea.nix
|
./system-modules/nx2site/gitea.nix
|
||||||
|
./system-modules/nx2site/radicale.nix
|
||||||
# ./system-modules/nx2site/nextcloud.nix
|
# ./system-modules/nx2site/nextcloud.nix
|
||||||
./system-modules/nx2site/vaultwarden.nix
|
./system-modules/nx2site/vaultwarden.nix
|
||||||
./system-modules/nx2site/paperless.nix
|
./system-modules/nx2site/paperless.nix
|
||||||
|
|||||||
@@ -136,6 +136,10 @@
|
|||||||
listen = dl;
|
listen = dl;
|
||||||
locations = { "/" = { proxyPass = "http://127.0.0.1:8441"; }; };
|
locations = { "/" = { proxyPass = "http://127.0.0.1:8441"; }; };
|
||||||
};
|
};
|
||||||
|
"dav.${domain}" = lib.mkIf config.services.radicale.enable (vh // {
|
||||||
|
listen = dl;
|
||||||
|
locations = { "/" = { proxyPass = "http://127.0.0.1:5232"; }; };
|
||||||
|
});
|
||||||
"nc.${domain}" = vh // {
|
"nc.${domain}" = vh // {
|
||||||
# directly to nc
|
# directly to nc
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,18 +1,28 @@
|
|||||||
{ config, domain, ... }:
|
{ config, domain, ... }:
|
||||||
{
|
{
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
"nx2site/radicale-htpasswd" = {};
|
"nx2site/radicale-htpasswd" = {
|
||||||
|
owner = "radicale";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
radicale = {
|
radicale = {
|
||||||
server.hosts = let
|
# is run by user radicale
|
||||||
port = builtins.toString 5232;
|
enable = true;
|
||||||
in [ "192.168.178.32:${port}" ];
|
settings = {
|
||||||
auth = {
|
server.hosts = let
|
||||||
type = "htpasswd";
|
port = builtins.toString 5232;
|
||||||
htpasswd_filename = config.sops.secrets."nx2site/radicale-htpasswd".path;
|
in [
|
||||||
htpasswd_encryption = "bcrypt";
|
"0.0.0.0:${port}"
|
||||||
|
"${domain}:${port}"
|
||||||
|
# "192.168.178.32:${port}"
|
||||||
|
];
|
||||||
|
auth = {
|
||||||
|
type = "htpasswd";
|
||||||
|
htpasswd_filename = config.sops.secrets."nx2site/radicale-htpasswd".path;
|
||||||
|
htpasswd_encryption = "bcrypt";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
"nginx"
|
"nginx"
|
||||||
"adbusers"
|
"adbusers"
|
||||||
"postgres"
|
"postgres"
|
||||||
|
"radicale"
|
||||||
"nextcloud"
|
"nextcloud"
|
||||||
];
|
];
|
||||||
useDefaultShell = true;
|
useDefaultShell = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user