diff --git a/secret/hosts/attic.nix b/secret/hosts/attic.nix index b4a8899..a793b5b 100644 Binary files a/secret/hosts/attic.nix and b/secret/hosts/attic.nix differ diff --git a/system/nixos/home-proxy.nix b/system/nixos/home-proxy.nix index 97dddaa..dab24ef 100644 --- a/system/nixos/home-proxy.nix +++ b/system/nixos/home-proxy.nix @@ -4,9 +4,14 @@ services.nginx.streamConfig = '' resolver 1.1.1.1 ipv6=off; + upstream home { + server ${secret.nginx.upstream.home.hostname}:${builtins.toString(secret.nginx.upstream.home.port)}; + } + server { - listen 0.0.0.0:${builtins.toString(secret.nginx.upstream.home.port)}; - proxy_pass ${secret.nginx.upstream.home.hostname}:${builtins.toString(secret.nginx.upstream.home.port)}; + listen ${builtins.toString(secret.nginx.upstream.home.port)}; + proxy_protocol on; + proxy_pass home; } '';