From ebd3ef29e873aa034697e71b5e8d9b91870af34b Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Sun, 9 Apr 2023 02:11:14 +0200 Subject: [PATCH] fixup --- secret/hosts/attic.nix | Bin 300 -> 304 bytes system/nixos/home-proxy.nix | 9 +++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/secret/hosts/attic.nix b/secret/hosts/attic.nix index b4a8899c97f941687db200105f4d8357d9eb9097..a793b5b5bf290868daa73a7af843886e193e4a79 100644 GIT binary patch literal 304 zcmV-00nh#bM@dveQdv+`0Ha$$uZ293Q<6muWRcIVqjHu3DJp~s)%15_^DstMJ%bf_g(HD@0XS5>$FmG$T zkkS#Xg5i!vwMpY^;zKEm z6Xom|lG*SDtNmUndzu!Bs!$di`{>-Tkne6z!3?~N&~;));=X8LsJG4D8I0NOj%CDi zTbz==shfWsHn5m16_k7=?*65dHn&faP+Y1whoFs8TkBRRX^QWw?i{d1whx$Phe)UcsV6}q y&>eb*_JUA41Q{so8X*zATfE}pwPIYcueA&Q-DX=F^zUi>5d=p+I$^LP+WgS00F}l7 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; } '';