From 67e7b7db2771eef493688aae7fe73b6db44c67e0 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Thu, 11 Jan 2024 20:14:09 +0300 Subject: [PATCH] Use proper proxy settings --- flake.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index c7cabb6..38466ad 100644 --- a/flake.nix +++ b/flake.nix @@ -175,13 +175,8 @@ forceSSL = true; useACMEHost = cfg.url; - locations."/".extraConfig = '' - proxy_pass http://localhost:${toString cfg.port}/404; - ''; - - locations."/assets".extraConfig = '' - proxy_pass http://localhost:${toString cfg.port}/assets; - ''; + locations."/".proxyPass = "http://localhost:${toString cfg.port}/404"; + locations."/assets".proxyPass = "http://localhost:${toString cfg.port}/assets"; }; };