lib/nginx: use dynamic proxy targets in proxyGhost

This commit is contained in:
Max Headroom 2024-08-10 02:58:56 +02:00
parent e347273e5b
commit 415fd7f076

View file

@ -36,7 +36,8 @@
proxyGhost = scheme: target: basic // {
locations."/".extraConfig = ''
proxy_pass ${scheme}://${target};
set $nix_proxy_ghost_target "${scheme}://${target}";
proxy_pass $nix_proxy_ghost_target;
proxy_set_header Host ${target};
proxy_set_header Referer ${scheme}://${target};
proxy_cookie_domain ${target} domain.invalid;