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

Fix uWSGI port config for Docker #1610

Merged
merged 1 commit into from
Feb 7, 2025
Merged

Fix uWSGI port config for Docker #1610

merged 1 commit into from
Feb 7, 2025

Conversation

swrichards
Copy link
Collaborator

The Docker uWSGI config had two issues:

  • It didn't specfy an address to listen on, so it would only listen on localhost by default
  • It used UWSGI_PORT to customize the port, which is not a recognized uWSGI option, but because it follows the naming scheme, was evaluated by uWSGI which then failed because of strict mode.

This commit changes this to always bind on all addresses, and to use the more conventional $PORT environment variable.

The Docker uWSGI config had two issues:

- It didn't specfy an address to listen on, so it would only
  listen on localhost by default
- It used UWSGI_PORT to customize the port, which is not a
  recognized uWSGI option, but because it follows the naming scheme,
  was evaluated by uWSGI which then failed because of strict mode.

This commit changes this to always bind on all addresses, and to use
the more conventional $PORT environment variable.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.22%. Comparing base (e43a611) to head (b0f88ea).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1610   +/-   ##
========================================
  Coverage    94.22%   94.22%           
========================================
  Files         1080     1080           
  Lines        39886    39886           
========================================
  Hits         37582    37582           
  Misses        2304     2304           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alextreme alextreme merged commit 7e99899 into develop Feb 7, 2025
23 checks passed
@alextreme alextreme deleted the fix-uwsgi-port branch February 7, 2025 08:07
@alextreme
Copy link
Member

Tagged with v1.27.0-rc2, thanks for the late-night fix!

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.

3 participants