Fix xandikos config and enable for Legion
This commit is contained in:
parent
bfc53dcb8a
commit
196638a46b
|
@ -10,6 +10,7 @@
|
||||||
./services/satisfactory/default.nix
|
./services/satisfactory/default.nix
|
||||||
./services/sshd.nix
|
./services/sshd.nix
|
||||||
./services/syncthing.nix
|
./services/syncthing.nix
|
||||||
|
./services/xandikos.nix
|
||||||
];
|
];
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
systemd-boot.enable = true;
|
systemd-boot.enable = true;
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
let
|
let
|
||||||
port = "5232";
|
port = 5232;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.xandikos = {
|
services.xandikos = {
|
||||||
inherit port;
|
inherit port;
|
||||||
enable = true;
|
enable = true;
|
||||||
routePrefix = "/cal";
|
routePrefix = "/dav";
|
||||||
extraOptions = [ "--defaults" ];
|
extraOptions = [ "--defaults" ];
|
||||||
};
|
};
|
||||||
services.caddy.virtualHosts."cal.xenia.me.uk".extraConfig = ''
|
services.caddy.virtualHosts."dav.xenia.me.uk".extraConfig = ''
|
||||||
basicauth {
|
basicauth {
|
||||||
pixelifytica $2a$14$AwYqa81IWL8lU7B5SrQhlOILZj4VqCgcIn9cte8nytQIP/WhfJoSG
|
pixelifytica $2a$14$AwYqa81IWL8lU7B5SrQhlOILZj4VqCgcIn9cte8nytQIP/WhfJoSG
|
||||||
}
|
}
|
||||||
respond /.well-known/caldav http://localhost:${port}/user/calendars
|
respond /.well-known/caldav http://localhost:${toString port}/user/calendars
|
||||||
respond /.well-known/carddav http://localhost:${port}/user/contacts
|
respond /.well-known/carddav http://localhost:${toString port}/user/contacts
|
||||||
reverse_proxy http://localhost:${port}
|
reverse_proxy http://localhost:${toString port}
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue