aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/configuration/server/syncthing/default.nix
blob: 10287d88fa4229b3665cc60cc06bce86c3cf1056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, lib, ... }:

{
  services.syncthing = {
    enable = true;
    user = "spacekookie";
    group = "core";
    openDefaultPorts = true;
    guiAddress = "0.0.0.0:8384";
  };

  services.nginx.enable = true;
  services.nginx.virtualHosts."sync.kookiejar.tech" = {
    serverAliases = [ "sync.alarei.kookie.space" ];
    useACMEHost = "alarei.kookie.space";
    forceSSL = true;
    locations."/" = {
      proxyPass = "http://127.0.0.1:8384";
    };
  };
}