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

API V2 cache problem with custom configuration in nginx.conf.in #3404

Closed
submarcos opened this issue Jan 11, 2023 · 0 comments · Fixed by #3405
Closed

API V2 cache problem with custom configuration in nginx.conf.in #3404

submarcos opened this issue Jan 11, 2023 · 0 comments · Fixed by #3405
Labels

Comments

@submarcos
Copy link
Member

submarcos commented Jan 11, 2023

API v2 responses doesn't take care about X-FORWARDED-PROTO value defined in nginx configuration.
This header is used by django to know if generated url (pictogram, attachment) is http or https.
In some cases, custom configuration in nginx.conf.in to work behind haproxy, API response does not match with headers.

For the moment, any change about it in nginx template should be followed by clearing api_v2 cache in admin panel

@submarcos submarcos changed the title API V2 cache problem when switching from http / https API V2 cache problem with custom configuration in nginx.conf.in Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant