Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify Caddy reverse proxy example by using transparent shorthand #197

Merged
merged 1 commit into from
Jan 29, 2019

Conversation

MarkOtzen
Copy link

Instead of manually adding headers, one can use the transparent shorthand. This is equivalent to

header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-For {remote}
header_upstream X-Forwarded-Proto {scheme}

which is a superset of the current configuration while being shorter and clearer.

https://caddyserver.com/docs/proxy

@xPaw xPaw merged commit bd52bc8 into thelounge:master Jan 29, 2019
@astorije
Copy link
Member

Hey @MarkOtzen, thanks for your first PR and welcome to The Lounge!
If you're interested, feel free to request some stickers at https://goo.gl/forms/f5usqAEp5DWoeXC92 🙂

@MarkOtzen
Copy link
Author

Thanks for the offer, but I already got a set. 😉

@astorije astorije changed the title Simplify Caddy reverse proxy example by using "transparent" shorthand Simplify Caddy reverse proxy example by using transparent shorthand Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants