add radicale service
This commit is contained in:
parent
679ff9a328
commit
ab9314be6d
1 changed files with 24 additions and 2 deletions
|
|
@ -2,9 +2,10 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
ports = {
|
ports = {
|
||||||
vaultwarden = "8000";
|
|
||||||
librespeed = "8001";
|
|
||||||
jellyfin = "8096";
|
jellyfin = "8096";
|
||||||
|
librespeed = "8000";
|
||||||
|
radicale = "8001";
|
||||||
|
vaultwarden = "8002";
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
@ -26,6 +27,10 @@ in
|
||||||
in
|
in
|
||||||
lib.mapAttrs (_: lib.recursiveUpdate commonVHostConfig) {
|
lib.mapAttrs (_: lib.recursiveUpdate commonVHostConfig) {
|
||||||
"_".locations."/".return = "444";
|
"_".locations."/".return = "444";
|
||||||
|
"dav.baduhai.dev".locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:${ports.radicale}";
|
||||||
|
extraConfig = "proxy_pass_header Authorization;";
|
||||||
|
};
|
||||||
"git.baduhai.dev".locations."/".proxyPass =
|
"git.baduhai.dev".locations."/".proxyPass =
|
||||||
"http://unix:${config.services.forgejo.settings.server.HTTP_ADDR}:/";
|
"http://unix:${config.services.forgejo.settings.server.HTTP_ADDR}:/";
|
||||||
"jellyfin.baduhai.dev".locations."/".proxyPass = "http://127.0.0.1:${ports.jellyfin}";
|
"jellyfin.baduhai.dev".locations."/".proxyPass = "http://127.0.0.1:${ports.jellyfin}";
|
||||||
|
|
@ -57,6 +62,23 @@ in
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
radicale = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
server = {
|
||||||
|
hosts = [
|
||||||
|
"127.0.0.1:5232"
|
||||||
|
"[::]:5232"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
auth = {
|
||||||
|
type = "htpasswd";
|
||||||
|
htpasswd_filename = "/etc/radicale/users";
|
||||||
|
htpasswd_encryption = "bcrypt";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
vaultwarden = {
|
vaultwarden = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue