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

Remove obsolete nginx wrapper #7370

Merged
merged 2 commits into from
Nov 2, 2023
Merged

Remove obsolete nginx wrapper #7370

merged 2 commits into from
Nov 2, 2023

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Oct 27, 2023

2b73310 introduced nginx as a proxy in front of the app in 2014. Since then we have migrated to the https://github.com/tokio-rs/axum web framework, and were using nginx for less and less things.

At this point all of the functionality from our nginx config has been migrated into our axum server and there is nothing left for nginx to do.

Additionally, our use of nginx on Heroku also runs into heroku/heroku-buildpack-nginx#31, which causes us to drop thousands of connections on every deployment.

This PR removes the nginx wrapper and buildpack from crates.io, exposing the axum server directly to the Heroku router.

Note that I've opened this as a draft pull request for now until #7365 has run in production for a couple of days without issues :)

@Turbo87 Turbo87 added C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear A-backend ⚙️ labels Oct 27, 2023
@bors
Copy link
Contributor

bors commented Oct 27, 2023

☔ The latest upstream changes (presumably 23d42c2) made this pull request unmergeable. Please resolve the merge conflicts.

@Turbo87 Turbo87 force-pushed the remove-nginx branch 2 times, most recently from 51d61c4 to e64357e Compare October 27, 2023 20:01
@Turbo87
Copy link
Member Author

Turbo87 commented Nov 2, 2023

This has been running in production without any issues for about a week now. I guess we can say goodbye to nginx now :)

@Turbo87 Turbo87 marked this pull request as ready for review November 2, 2023 12:04
@Turbo87 Turbo87 enabled auto-merge November 2, 2023 12:04
@Turbo87 Turbo87 merged commit dc579f0 into rust-lang:main Nov 2, 2023
6 checks passed
@Turbo87 Turbo87 deleted the remove-nginx branch November 2, 2023 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants