From 02e466e9719af9cc24fe788b6ff47267d3b59955 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Mon, 6 Jan 2025 20:08:45 +0300 Subject: [PATCH] Tandoor: Fix images not loading. --- host/x86_64-linux/home/Tandoor.nix | 3 +++ host/x86_64-linux/home/nginx/Tandoor.nix | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/host/x86_64-linux/home/Tandoor.nix b/host/x86_64-linux/home/Tandoor.nix index a376cf4..3847dfa 100644 --- a/host/x86_64-linux/home/Tandoor.nix +++ b/host/x86_64-linux/home/Tandoor.nix @@ -3,5 +3,8 @@ enable = true; address = "[::1]"; port = 33122; + extraConfig = { + GUNICORN_MEDIA = 1; + }; }; } diff --git a/host/x86_64-linux/home/nginx/Tandoor.nix b/host/x86_64-linux/home/nginx/Tandoor.nix index df02e61..b2555b1 100644 --- a/host/x86_64-linux/home/nginx/Tandoor.nix +++ b/host/x86_64-linux/home/nginx/Tandoor.nix @@ -9,6 +9,10 @@ deny all; proxy_pass http://[::1]:33122$request_uri; + + proxy_set_header Host $host; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Proto https; } ssl_certificate /etc/letsencrypt/live/voronind.com/fullchain.pem;