nixos-config/configs/workhorse/seafile.nix

28 lines
602 B
Nix
Raw Normal View History

2019-12-20 05:54:26 +01:00
{ config, lib, pkgs, ... }: {
2019-10-24 02:20:38 +02:00
services.nginx = {
enable = true;
statusPage = true;
virtualHosts = {
"seafile.${config.networking.hostName}.private" = {
2019-12-20 05:54:26 +01:00
serverAliases = [ ];
2019-10-24 02:20:38 +02:00
locations."/" = {
2019-12-20 05:54:26 +01:00
proxyPass = "http://${config.networking.hostName}.private:${
toString config.custom.services.seafile.port
}";
2019-10-24 02:20:38 +02:00
};
};
};
};
custom.services.seafile = {
enable = true;
hostname = "seafile.gaykraft.com";
port = 3030;
home = "/home/seafile";
};
virtualisation.docker.enable = lib.mkDefault true;
}