[PR #15523] [CLOSED] 15154 Replace gunicorn with uWSGI as NetBox default WSGI server #14610

Closed
opened 2025-12-29 23:25:29 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15523
Author: @arthanson
Created: 3/25/2024
Status: Closed

Base: featureHead: 15154-uwsgi


📝 Commits (10+)

📊 Changes

12 files changed (+95 additions, -16 deletions)

View changed files

📝 base_requirements.txt (+4 -4)
📝 contrib/netbox.service (+1 -1)
📝 contrib/nginx.conf (+6 -4)
contrib/uwsgi.ini (+18 -0)
📝 docs/configuration/index.md (+1 -1)
docs/installation/4-uwsgi.md (+58 -0)
📝 docs/installation/5-http-server.md (+1 -1)
📝 docs/installation/gunicorn.md (+1 -1)
📝 docs/installation/index.md (+1 -1)
📝 docs/introduction.md (+1 -1)
📝 mkdocs.yml (+2 -1)
📝 requirements.txt (+1 -1)

📄 Description

Fixes: #15154

I kept gunicorn documentation around as an alternative. uwsgi.ini file is a minimal config (no workers defined, just using defaults).

@jeremystretch re-did from scratch on a clean Ubuntu system, but probably a good idea if you can install with the steps given just to double-check.

Note: Couple related issues / questions:

  • The upgrade script text refers to gunicorn - I currently assume we don't want to switch them to uWSGI if they already have gunicorn up and working?
  • I've removed gunicorn from requirements, but if we do that it will never get updated when they update NetBox if they are using it.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/15523 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 3/25/2024 **Status:** ❌ Closed **Base:** `feature` ← **Head:** `15154-uwsgi` --- ### 📝 Commits (10+) - [`231a82f`](https://github.com/netbox-community/netbox/commit/231a82f4ebe7bfd5220b4acd8661eda7746743f9) 15154 start update docs - [`12e3710`](https://github.com/netbox-community/netbox/commit/12e37109aa293411c12633d04ca93085591dea77) 15154 rename gunicorn doc - [`fa4a31a`](https://github.com/netbox-community/netbox/commit/fa4a31a52ebfe9c46a5106e7a49f08c4a4588bd5) Merge branch 'feature' into 15154-uwsgi - [`503ac97`](https://github.com/netbox-community/netbox/commit/503ac975328fac9a2b0b9ae571b4435714cdfcec) 15154 update docs and ini file - [`75f9010`](https://github.com/netbox-community/netbox/commit/75f901002be6e8bda5331bd2d1c5797092052e59) 15154 update docs and ini file - [`f36e7ad`](https://github.com/netbox-community/netbox/commit/f36e7ad92ec27fd47e61aec0ede19536b80d91cd) 15154 update requirements - [`b5870e5`](https://github.com/netbox-community/netbox/commit/b5870e5b8270559f2a0730b6dfc954fbd35ade35) 15154 nginx conf - [`269b7c2`](https://github.com/netbox-community/netbox/commit/269b7c225494a5b4ea859df1169b4e640e18ed8c) 15154 merge feature - [`d098b01`](https://github.com/netbox-community/netbox/commit/d098b01a9b20180a0112dd9191c43c4f768080d7) 15154 fix service - [`fcc0fec`](https://github.com/netbox-community/netbox/commit/fcc0fec9bb586e8d4566463c409a676c7430850d) 15154 update ini ### 📊 Changes **12 files changed** (+95 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `base_requirements.txt` (+4 -4) 📝 `contrib/netbox.service` (+1 -1) 📝 `contrib/nginx.conf` (+6 -4) ➕ `contrib/uwsgi.ini` (+18 -0) 📝 `docs/configuration/index.md` (+1 -1) ➕ `docs/installation/4-uwsgi.md` (+58 -0) 📝 `docs/installation/5-http-server.md` (+1 -1) 📝 `docs/installation/gunicorn.md` (+1 -1) 📝 `docs/installation/index.md` (+1 -1) 📝 `docs/introduction.md` (+1 -1) 📝 `mkdocs.yml` (+2 -1) 📝 `requirements.txt` (+1 -1) </details> ### 📄 Description ### Fixes: #15154 I kept gunicorn documentation around as an alternative. uwsgi.ini file is a minimal config (no workers defined, just using defaults). @jeremystretch re-did from scratch on a clean Ubuntu system, but probably a good idea if you can install with the steps given just to double-check. **Note:** Couple related issues / questions: * The upgrade script text refers to gunicorn - I currently assume we don't want to switch them to uWSGI if they already have gunicorn up and working? * I've removed gunicorn from requirements, but if we do that it will never get updated when they update NetBox if they are using it. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:25:29 +01:00
adam closed this issue 2025-12-29 23:25:29 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14610