Move proxies to module

This commit is contained in:
Greg Hellings
2022-04-20 11:11:35 -05:00
parent cb3dad8411
commit 2798392892
6 changed files with 90 additions and 24 deletions
+7 -7
View File
@@ -5,12 +5,12 @@
{ ... }:
{
services.nginx = {
enable = true;
# A proxy front-end for Syncthing
virtualHosts."dns.thehellings.lan" = {
locations."/sync/".proxyPass = "http://127.0.0.1:8384/";
serverAliases = [ "dns" ];
};
greg.proxies."dns.thehellings.lan" = {
target = "http://127.0.0.1:8384/";
ssl = false;
path = "/sync/";
};
# The module doesn't handle this
services.nginx.virtualHosts."dns.thehellings.lan".serverAliases = [ "dns" ];
}