This post is just to let you know that I had experienced an extensive issue configuring proxy protocol with Nova and in the end, Nova just doesn’t support it.
I could not find any support online so someone will land on this one day and be happy to know about it.
So Beware if we try to move over with proxy protocol setting using Digital Ocean Loadbalancer with proxy function turned on.
server {
listen 80 proxy_protocol;
set_real_ip_from xxx.xxx.xxx.xxx;
real_ip_header proxy_protocol;
}
proxy_set_header X-Real-IP $proxy_protocol_addr;
proxy_set_header X-Forwarded-For $proxy_protocol_addr;
Instead of using the above to you just need to use the below with Nova.
real_ip_header X-Forwarded-For;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
This also works with Digital Ocean Loadbalancer, but you must turn off the proxy in digitalOcean.