Comments (3)
the upstream server's nginx still gets the Caddy server's local IP instead of the client's IP.
In what way? The connection will always be coming from Caddy, nginx has to be reading the headers to get the IP...
(Closing, since I'm not sure this is a bug and it's not really actionable right now, but we can reopen if needed. Feel free to continue discussion.)
from caddy.
"Sorry, this is my first time using Caddy.
The flow is: Client (192.168.0.105) -> Caddy (192.168.0.150) -> Nginx (192.168.0.121).
I've configured X-Forwarded-For and X-REAL-IP in Caddy as well, but Nginx's logs still show the IP of Caddy instead of the client's IP."
nginx config:
server {
listen 80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
}
from caddy.
That might require extra config on nginx's side: https://gist.github.com/dublado/30494c771730437ee88209f168b9affd
from caddy.
Related Issues (20)
- Caddy using an incredible amount of cpu out of nowhere HOT 2
- reverse proxy multiple web servers HOT 1
- Problem with proxy rpc over http HOT 5
- Multiple header values on the same field HOT 1
- Feature request: "Set-Cookie" manipulation in the response HOT 10
- binding to an interface explicite is not possible multiple times HOT 2
- Memory leaks HOT 7
- pflag error when compiling -> bad result slice HOT 2
- Inquiry on Using Starlark Scripting with Caddy HOT 4
- caddytls: tailscale cert manager not used as fallback for *.ts.net certs HOT 9
- reverseproxy: feature request: certificate pinning for use with tls_insecure_skip_verify HOT 1
- all: Support the riscv64 platform HOT 3
- Improve error message when trying to define a global matcher HOT 3
- Issue with Caddy Server Configuration for Domain HOT 1
- v2.8.0-rc.1: panic: runtime error: invalid memory address or nil pointer dereference HOT 5
- Intermediate certificate expired without using specified root certificate HOT 2
- Set `sign_with_root` via Caddyfile HOT 3
- core: caddy unable to start with an empty $HOME HOT 5
- Using proxy_protocol v2 with h2c backend gives wrong IP address to backend. HOT 19
- TLS does not work on NATed IPv4 literal HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caddy.