diff options
| author | Christian Krinitsin <code@krinitsin.xyz> | 2025-03-15 12:52:27 +0100 |
|---|---|---|
| committer | Christian Krinitsin <code@krinitsin.xyz> | 2025-03-15 12:52:27 +0100 |
| commit | 60ef68d3fa3b3127c009089b377399c03106df65 (patch) | |
| tree | a107b00fbf87ce5cc9cc1b98dda8b32810caab38 /modules/syncthing.nix | |
| parent | 3208039a06a26467026a0946814d570146599a47 (diff) | |
| download | nosix-60ef68d3fa3b3127c009089b377399c03106df65.tar.gz nosix-60ef68d3fa3b3127c009089b377399c03106df65.zip | |
refactor config: make modules completely independent from webserver
Diffstat (limited to 'modules/syncthing.nix')
| -rw-r--r-- | modules/syncthing.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/syncthing.nix b/modules/syncthing.nix index 4458b42..c25c956 100644 --- a/modules/syncthing.nix +++ b/modules/syncthing.nix @@ -8,5 +8,12 @@ openDefaultPorts = true; }; - networking.firewall.allowedTCPPorts = [ 8384 ]; + 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" ]; + } |
