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

nginx 502 issue caused by Magento SCP plugin large headers #53

Open
netukamptg opened this issue Feb 7, 2021 · 1 comment
Open

nginx 502 issue caused by Magento SCP plugin large headers #53

netukamptg opened this issue Feb 7, 2021 · 1 comment

Comments

@netukamptg
Copy link

Hi,

We are using m2c version v0.10.5. Magento 2.3.5 and later contains SCP plugin which generates extremely large headers which leads to 502 Bad Gateway issue "…upstream sent too big header while reading response header from upstream...". The workaround is to disable SCP plugin but fix would be welcome.

nginx image should be updated with something like:

fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
@netukamptg netukamptg changed the title nginx SCP headers issue nginx 502 issue caused by Magento SCP plugin large headers Feb 7, 2021
@kickandrush-ecommerce
Copy link

kickandrush-ecommerce commented Feb 11, 2021

https://github.com/flancer32/mage2_ext_csp

Module to collect CSP violations reports and convert it to the CSP rules. Works like a charm for me in 2.3.5-p1 and 2.4.1.

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

No branches or pull requests

2 participants