1
0
Fork 0

Update greatyamada services

This commit is contained in:
Avery 2025-02-14 21:52:49 +01:00
parent 2fef3e01c6
commit fa0b9b18cd
Signed by: Avery
GPG key ID: B684FD451B692E04
22 changed files with 290 additions and 191 deletions

View file

@ -1,13 +1,15 @@
{ ... }:
let
radicalePath = "/mnt/Datos/radicale";
nginxLocalServiceConfig = import ./nginx-local-config.nix;
portDefinitions = import ./_port-definitions.nix;
radicalePath = "/mnt/Datos/radicale";
in {
services = {
radicale = {
enable = true;
settings = {
server.hosts = [ "127.0.0.1:5232" ];
server.hosts =
[ "127.0.0.1:${toString portDefinitions.radicale-http}" ];
auth = {
type = "htpasswd";
htpasswd_filename = "/etc/radicale/users";
@ -17,7 +19,10 @@ in {
};
};
nginx.virtualHosts."radicale.rcia.dev" = {
locations."/" = { proxyPass = "http://127.0.0.1:5232"; };
locations."/" = {
proxyPass =
"http://127.0.0.1:${toString portDefinitions.radicale-http}";
};
extraConfig = nginxLocalServiceConfig;
};
};