switch to baikal
This commit is contained in:
parent
6c5bbd5576
commit
96d15b02fe
3 changed files with 30 additions and 5 deletions
24
hosts/dav/baikal.nix
Normal file
24
hosts/dav/baikal.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
../../services/nginx.nix
|
||||
];
|
||||
|
||||
services = {
|
||||
baikal = {
|
||||
enable = true;
|
||||
virtualHost = "dav.${config.networking.domain}";
|
||||
};
|
||||
|
||||
nginx.virtualHosts."dav.${config.networking.domain}" = {
|
||||
default = true;
|
||||
quic = true;
|
||||
kTLS = true;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/all.ics".root = "/srv/www/calendar";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -5,7 +5,8 @@
|
|||
../common.nix
|
||||
../../services/openssh.nix
|
||||
../../services/prometheus-node.nix
|
||||
./radicale.nix
|
||||
#./radicale.nix
|
||||
./baikal.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
|
|
|
|||
|
|
@ -42,14 +42,14 @@ in
|
|||
radicale = {
|
||||
enable = true;
|
||||
rights = {
|
||||
root = {
|
||||
user = ".*";
|
||||
collection = "";
|
||||
readonly = {
|
||||
user = "";
|
||||
collection = ".*";
|
||||
permissions = "r";
|
||||
};
|
||||
principal = {
|
||||
user = ".*";
|
||||
collection = "{user}/?";
|
||||
collection = "{user}";
|
||||
permissions = "rw";
|
||||
};
|
||||
collections = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue