lib/nginx: use dynamic proxy targets in proxyGhost
This commit is contained in:
parent
e347273e5b
commit
415fd7f076
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@
|
||||||
|
|
||||||
proxyGhost = scheme: target: basic // {
|
proxyGhost = scheme: target: basic // {
|
||||||
locations."/".extraConfig = ''
|
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 Host ${target};
|
||||||
proxy_set_header Referer ${scheme}://${target};
|
proxy_set_header Referer ${scheme}://${target};
|
||||||
proxy_cookie_domain ${target} domain.invalid;
|
proxy_cookie_domain ${target} domain.invalid;
|
||||||
|
|
Loading…
Reference in a new issue