bepasty-server: fix proxied host header spoofing

This commit is contained in:
lassulus 2019-10-10 14:48:45 +02:00
parent 7fb3248a6c
commit c8e29c89bc

View File

@ -164,7 +164,7 @@ let
client_max_body_size 32M;
'';
locations = {
"/".extraConfig = "proxy_set_header Host $http_host;";
"/".extraConfig = "proxy_set_header Host $host;";
"/".proxyPass = "http://unix:${server.workDir}/gunicorn-${name}.sock";
"/static/".extraConfig = ''
alias ${bepasty}/lib/${python.libPrefix}/site-packages/bepasty/static/;