1
0
Fork 0
nixos-config/hosts/charon/dav.nix
2018-04-02 17:52:16 +02:00

24 lines
528 B
Nix

{ pkgs, ... }:
{
services = {
radicale = {
enable = true;
package = pkgs.radicale2;
config = ''
[auth]
type = http_x_remote_user
'';
};
nginx = {
virtualHosts."dav.maralorn.de" = {
forceSSL = true;
enableACME = true;
# See /etc/nixos/local/ für basic_auth pw.
locations."/" = {
proxyPass = "http://127.0.0.1:5232";
extraConfig = "proxy_set_header X-Remote-User $remote_user;";
};
};
};
};
}