bepasty-server: fix proxied host header spoofing
This commit is contained in:
parent
7fb3248a6c
commit
c8e29c89bc
@ -164,7 +164,7 @@ let
|
|||||||
client_max_body_size 32M;
|
client_max_body_size 32M;
|
||||||
'';
|
'';
|
||||||
locations = {
|
locations = {
|
||||||
"/".extraConfig = "proxy_set_header Host $http_host;";
|
"/".extraConfig = "proxy_set_header Host $host;";
|
||||||
"/".proxyPass = "http://unix:${server.workDir}/gunicorn-${name}.sock";
|
"/".proxyPass = "http://unix:${server.workDir}/gunicorn-${name}.sock";
|
||||||
"/static/".extraConfig = ''
|
"/static/".extraConfig = ''
|
||||||
alias ${bepasty}/lib/${python.libPrefix}/site-packages/bepasty/static/;
|
alias ${bepasty}/lib/${python.libPrefix}/site-packages/bepasty/static/;
|
||||||
|
Loading…
Reference in New Issue
Block a user