Skip to content

Change webserver from cowboy to bandit#215

Open
DimitrijeDimitrijevic wants to merge 5 commits intoClaperCo:devfrom
DimitrijeDimitrijevic:webserver_to_bandit
Open

Change webserver from cowboy to bandit#215
DimitrijeDimitrijevic wants to merge 5 commits intoClaperCo:devfrom
DimitrijeDimitrijevic:webserver_to_bandit

Conversation

@DimitrijeDimitrijevic
Copy link
Contributor

Changes the ex-default Phoenix webserver ( Cowboy) to now default Bandit.

Updated all options to correspond to Bandit style.

@alxlion
Copy link
Contributor

alxlion commented Feb 26, 2026

  1. Remove mua and mail deps (out of scope for this PR)
  2. Remove :plug_cowboy from mix.exs
  3. Keep http: instead of http_options (https://hexdocs.pm/bandit/Bandit.PhoenixAdapter.html#module-endpoint-configuration)
  4. Clean up mix.lock after dependency changes

@DimitrijeDimitrijevic
Copy link
Contributor Author

DimitrijeDimitrijevic commented Feb 26, 2026 via email

@DimitrijeDimitrijevic
Copy link
Contributor Author

  1. :mua and :mail deps were here when I pulled, now I've removed them.
  2. Removed
  3. If I omit http_1_options, the server won't start, in order to keep the configuration as it was for cowboy.
  4. Clean-up

Can you please review once again ?

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