Skip to content

Update Proxy support for django 4.2 - #6453

Merged
SchrodingersGat merged 3 commits into
inventree:masterfrom
SchrodingersGat:proxy-support
Feb 8, 2024
Merged

SchrodingersGat merged 3 commits into
inventree:masterfrom
SchrodingersGat:proxy-support

Conversation

@SchrodingersGat

Copy link
Copy Markdown
Member

Improve support for django configuration, in particular around host / proxy settings.

Updating to django 4.2 has changed the way that some core settings are specified, and these now need to be explicitly configured for InvenTree to run properly behind a proxy.

Ref : #6452 (turns out the issue is proxy, not db)

- Now required by 4.2
- Prevents running behind proxy
- CSRF_TRUSTED_ORIGINS
- USE_X_FORWARDED_HOST
- USE_X_FORWARDED_PORT
- Update config template file also.
@SchrodingersGat SchrodingersGat added dependency Relates to a project dependency setup Relates to the InvenTree setup / installation process breaking Indicates a major update or change which breaks compatibility labels Feb 8, 2024
@SchrodingersGat SchrodingersGat added this to the 0.14.0 milestone Feb 8, 2024
@netlify

netlify Bot commented Feb 8, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit b77794c
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/65c449693180ec0007a421a6

This was referenced Feb 8, 2024
Remove dirt
@SchrodingersGat
SchrodingersGat merged commit 226dc82 into inventree:master Feb 8, 2024
@SchrodingersGat
SchrodingersGat deleted the proxy-support branch February 8, 2024 03:45
@matmair

matmair commented Feb 8, 2024

Copy link
Copy Markdown
Member

@SchrodingersGat this will need to be in the release notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Indicates a major update or change which breaks compatibility dependency Relates to a project dependency setup Relates to the InvenTree setup / installation process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants