Closed ricardokrieg closed 8 years ago
Reading the code, it seems its not possible. I'll try to implement this feature.
Given this configuration:
server '1.1.1.1', roles: %w{web}
server '2.2.2.2', roles: %w{app db}, private_ip: '3.3.3.3'
You can do this in the NGINX template:
server <%= primary(:app).properties.private_ip %>:8080 fail_timeout=0;
Closing due to lack of activity. Happy to accept a PR though.
Considering a setting like this:
If I got it right, the nginx will be configured this way:
But I want to connect to server 2.2.2.2 using its private ip (3.3.3.3). Is there a way to do this?