Skip to content

Commit

Permalink
Add X-Forwarded-For header to json logs and remove server version fro…
Browse files Browse the repository at this point in the history
…m response headers
  • Loading branch information
AdamJHall committed Nov 21, 2024
1 parent 255177e commit 1f071d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/graphql-mesh-server/assets/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ http {
'"body_bytes_sent":"$body_bytes_sent",'
'"request_time":"$request_time",'
'"http_referer":"$http_referer",'
'"http_user_agent":"$http_user_agent"'
'"http_user_agent":"$http_user_agent",'
'"http_x_forwarded_for":"$http_x_forwarded_for"'
'}';

gzip on;
gzip_proxied any;
gzip_types text/plain application/json;
gzip_min_length 1000;
server_tokens off;

server {
listen 80;
Expand Down

0 comments on commit 1f071d3

Please sign in to comment.