Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --rpc-host option for Roadrunner #619

Merged
merged 1 commit into from
Nov 19, 2022
Merged

Add --rpc-host option for Roadrunner #619

merged 1 commit into from
Nov 19, 2022

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