Skip to content

Conversation

matthew-inamdar
Copy link
Contributor

@matthew-inamdar matthew-inamdar commented Nov 19, 2022

What

This PR adds the --rpc-host option to be used for the Roadrunner server. Its value defaults to the --host option to preserve backward compatibility.

Why

When deploying to AWS ECS as a Docker container and Nginx sidecar, the --host option must be set to 0.0.0.0 to listen to any host.

However, the RPC host needs to be set to the loopback interface 127.0.0.1. The current logic sets both hosts to the same, making this impossible to configure.

We've already implemented this as a custom command on our own codebase, which has been deployed to a production environment and is successfully working as we expect.


Without this, we get a bunch of network error logs and the task is never able to start due to the server being unable to respond to any requests:

Screenshot 2022-11-15 at 23 01 13

@taylorotwell taylorotwell merged commit 3e89616 into laravel:1.x Nov 19, 2022
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.

2 participants