summary refs log tree commit diff stats
path: root/modules/syncthing.nix
blob: c25c9565e50c05f97c8140eb77ea068dcb7793ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ pkgs, libs, config, ... }:
{

  services.syncthing = {
    enable = true;
    guiAddress = "localhost:8384";
    dataDir = "/var/lib/syncthing";
    openDefaultPorts = true;
  };
  
  services.nginx.virtualHosts."syncthing.krinitsin.com" = {
    forceSSL = true;
    useACMEHost = "krinitsin.com";
    locations."/".proxyPass = "https://localhost:8384";
  };

  security.acme.certs."krinitsin.com".extraDomainNames = [ "syncthing.krinitsin.com" ];

}