From 275f897db836412a3c3a9bd8fd24d8ed9b627240 Mon Sep 17 00:00:00 2001 From: chaos Date: Mon, 16 Dec 2024 14:40:52 +0000 Subject: [PATCH] fix nginx config --- hosts/hetzner-arm/profiles/photoprism.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/hetzner-arm/profiles/photoprism.nix b/hosts/hetzner-arm/profiles/photoprism.nix index 23c8ab7..4a0ee6c 100644 --- a/hosts/hetzner-arm/profiles/photoprism.nix +++ b/hosts/hetzner-arm/profiles/photoprism.nix @@ -49,12 +49,12 @@ in { originalsPath = "/Photos"; }; - services.nginx.virtualHosts."vault.owo.monster" = { + services.nginx.virtualHosts."photoprism.owo.monster" = { forceSSL = true; enableACME = true; locations = { "/" = { - proxyPass = "http://127.0.0.1:8200"; + proxyPass = "http://127.0.0.1:${config.services.photoprism.port}"; proxyWebsockets = true; extraConfig = '' proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;