Fix xandikos config and enable for Legion

This commit is contained in:
Evie Litherland-Smith 2024-09-29 12:36:58 +01:00
parent bfc53dcb8a
commit 196638a46b
2 changed files with 7 additions and 6 deletions

View file

@ -10,6 +10,7 @@
./services/satisfactory/default.nix
./services/sshd.nix
./services/syncthing.nix
./services/xandikos.nix
];
boot.loader = {
systemd-boot.enable = true;

View file

@ -1,20 +1,20 @@
{ ... }:
let
port = "5232";
port = 5232;
in
{
services.xandikos = {
inherit port;
enable = true;
routePrefix = "/cal";
routePrefix = "/dav";
extraOptions = [ "--defaults" ];
};
services.caddy.virtualHosts."cal.xenia.me.uk".extraConfig = ''
services.caddy.virtualHosts."dav.xenia.me.uk".extraConfig = ''
basicauth {
pixelifytica $2a$14$AwYqa81IWL8lU7B5SrQhlOILZj4VqCgcIn9cte8nytQIP/WhfJoSG
}
respond /.well-known/caldav http://localhost:${port}/user/calendars
respond /.well-known/carddav http://localhost:${port}/user/contacts
reverse_proxy http://localhost:${port}
respond /.well-known/caldav http://localhost:${toString port}/user/calendars
respond /.well-known/carddav http://localhost:${toString port}/user/contacts
reverse_proxy http://localhost:${toString port}
'';
}