nginx / unit

NGINX Unit - universal web app server - a lightweight and versatile open source server that simplifies the application stack by natively executing application code across eight different programming language runtimes.
https://unit.nginx.org
Apache License 2.0
5.37k stars 323 forks source link

Proxy protocol support? #950

Closed aborzanovic closed 11 months ago

aborzanovic commented 1 year ago

Does Unit support Proxy protocol? I have a Nginx set up with listen 8080 ssl default_server proxy_protocol; along with real_ip_header proxy_protocol; and was wondering if Unit can do the same.

lcrilly commented 1 year ago

Unit doesn't support PROXY Protocol yet. As an application server / origin server it is most commonly deployed behind a reverse proxy or load balancer which can convert PROXY Protocol to X-Forwarded- request headers. Unit can use these to provide a similar experience to nginx's real_ip module.

https://unit.nginx.org/configuration/#ip-protocol-forwarding