Skip to content

Commit

Permalink
Merge pull request #979 from steveworley/patch-1
Browse files Browse the repository at this point in the history
Feat: Explicitly set fastcgi_params
  • Loading branch information
tobybellwood authored Apr 24, 2024
2 parents 7cfdce2 + fc919ba commit 5387e2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions images/nginx/fastcgi.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ set_by_lua_block $remote_addr_clean {
end
}

fastcgi_param HTTP_X_FORWARDED_FOR $proxy_add_x_forwarded_for;
fastcgi_param HTTP_X_REAL_IP $remote_addr;
fastcgi_param HTTP_X_FORWARDED_PROTO $scheme;

fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
Expand Down

0 comments on commit 5387e2e

Please sign in to comment.