-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Make Bandit the default web server for new Phoenix apps #5706
Conversation
This is working and ready |
|
||
# Even though Bandit is the default in apps generated via the installer, | ||
# we continue to use Cowboy as the default if not explicitly specified for | ||
# backwards compatibility. TODO: Change this to default to Bandit in 2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noto bene
(Also bump bandit dep to ~> 1.0)
da66963
to
6f700f9
Compare
6f700f9
to
e61c433
Compare
e61c433
to
a1b93bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If integration tests pass, this is good to go IMO!
Integration test failing on Plug not being loaded now that we've dropped plug_cowboy. There's likely some loading issue somewhere; I'll figure it out |
Integration issue is upstream at swoosh/swoosh#857. Once this is fixed / released I'll update the dep here |
Will ya look at that, all green and ready to go. |
We are using https in our local development setup and configured it like described in https://hexdocs.pm/phoenix/using_ssl.html#ssl-in-development. Today I tried Bandit but it crashes:
Maybe there are some things that are missing on our side, but I think these should be documented. |
@krns yep - that's a wrinkle that you have to fix manually when using raw Bandit. In the case of Phoenix, we know for certain that we have an |
@krns Bandit 1.2.0 just released that should fix the issue! |
Bandit 1.2.0 works, thank you so much @mtrudel! |
❤️❤️❤️🐥🔥 |
This PR: