* Replace the @app location with a unique ID generated from the Rails application name * Puma is currently only listening on IPv4 so having nginx proxy to localhost wasted a connection to ::1. The proxy address is now to 127.0.0.1 to keep that from happening.pjones/monitoring
@@ -67,11 +67,11 @@ let | |||
}; | |||
"/" = { | |||
tryFiles = "$uri @app"; | |||
tryFiles = "$uri @rails-${app.name}"; | |||
}; | |||
"@app" = { | |||
proxyPass = "http://localhost:${toString app.port}"; | |||
"@rails-${app.name}" = { | |||
proxyPass = "http://127.0.0.1:${toString app.port}"; | |||
}; | |||
}; | |||
}; |