Skip to content

Commit

Permalink
Cf-Connecting-Ip
Browse files Browse the repository at this point in the history
  • Loading branch information
webees authored Nov 16, 2024
1 parent 65cb8ff commit fe1f97a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
}

reverse_proxy localhost:5000 {
header_up X-Real-IP {remote_host}
# Send the true remote IP to Rocket, so that vaultwarden can put this in the log
@cloudflare header Cf-Connecting-Ip *
header_up @cloudflare X-Real-IP {http.request.header.Cf-Connecting-Ip}
header_up !@cloudflare X-Real-IP {remote_host}
}
}

0 comments on commit fe1f97a

Please sign in to comment.