nixos-config/hosts/phantom/syncthing.nix

25 lines
621 B
Nix
Raw Normal View History

2024-03-28 21:56:52 -03:00
{ config, pkgs, inputs, ... }: {
services.syncthing = {
enable = true;
dataDir = "/var/lib/syncthing-data";
guiAddress = "0.0.0.0:8384";
openDefaultPorts = true;
};
2024-05-11 18:00:19 -03:00
services.nginx.virtualHosts."syncthing.lelgenio.com" = {
2024-03-28 21:56:52 -03:00
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8384";
extraConfig =
# required when the target is also TLS server with multiple hosts
"proxy_ssl_server_name on;" +
# required when the server wants to use HTTP Authentication
"proxy_pass_header Authorization;"
;
};
};
}