Giter Club home page Giter Club logo

Comments (4)

jaydrogers avatar jaydrogers commented on July 18, 2024

Hey @bretto36,

Could you elaborate more on what issues you're running into? We're running InertiaJS and we haven't had any issues with it.

from docker-php.

bretto36 avatar bretto36 commented on July 18, 2024

On pages with lots of components the headers that get sent for preloading from laravel/inertia cause an error

We've had to increase the fastcgi size a few times now. Only happens on pages with LOTS of components though.

We also have a large CSP in place which probably adds to the overall header size

from docker-php.

bretto36 avatar bretto36 commented on July 18, 2024

@jaydrogers This is what we do to fix currently and it's not clean. Because we bad a 502 bad gateway from nginx

#FIND fastcgi_buffers 8 8k; and change to fastcgi_buffers 8 128k;
RUN sed -i 's/fastcgi_buffers 8 8k;/fastcgi_buffers 8 128k;/' /etc/nginx/site-opts.d/http.conf.template

#FIND fastcgi_buffer_size 8k; and change to fastcgi_buffer_size 128k;
RUN sed -i 's/fastcgi_buffer_size 8k;/fastcgi_buffer_size 128k;/' /etc/nginx/site-opts.d/http.conf.template

This is the header that comes through on inertia requests and on pages where there might be 100 components it's causing the 502 bad gateway
Link:
https://www.ourprivatewebsite.com/vite/assets/vendor-DOCBipsl.css; rel="preload"; as="style"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/app-BgXWi5CI.css; rel="preload"; as="style"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/AppLayout-Dh72TD9p.css; rel="preload"; as="style"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/DataTable-Ci3Z2Z-m.css; rel="preload"; as="style"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/widgetList-CgCkd_HP.css; rel="preload"; as="style"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/app-BlTBcJuK.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/vendor-BVpJOPMw.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/Select-D_6GEM4M.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/AppLayout-8H1WyAIN.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/DataTable-DeU16A_s.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/Filter-DBsJIDwS.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/NotificationMessage-DNLmqtQk.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/widgetList-lG-5fs01.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/TertiaryButton-DYif8TcJ.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/Dialog-D14z6lDx.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/Spinner-9TH_e2Iv.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/InputError-CotbE7uV.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/InputLabel-ZpMvucLD.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/TextInput-DOQHesha.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/PrimaryButton-BnZAyTs2.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/Pagination-OldOVRe3.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/PaginationLinks.vue_vue_type_script_setup_true_lang-wynNfNip.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/DialogModal-BFKkD-ZW.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/CondensedDate-v0q26KmN.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/Checkbox-BX9t8MED.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/StringInput-BbQC1S_3.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1", https://www.ourprivatewebsite.com/vite/assets/MultiSelectInput.vue_vue_type_script_setup_true_lang-B7lAWWZ5.js; rel="modulepreload"; nonce="ADWf7CukAPGc269DPxFFLNKfEFaeVQtUnqTzZ3g1"

from docker-php.

jaydrogers avatar jaydrogers commented on July 18, 2024

Thanks for the extra info. Take a look at this if you can help me test:

PR to review

Docs to Review

Preview URL is here: https://381-allow-fastcgi-parameters.serversideup-php.pages.dev/

Image To Test

That PR is being pushed to our development repo. Any image with docker.io/serversideup/php-dev:382-* will be from that PR, but you have to wait until the job finishes (could be an hour from this post)

Job to keep an eye on

The test images will not be available until this job completes: https://github.com/serversideup/docker-php/actions/runs/9572648967

Next Steps

Once the job is completed, please take a look at the docs and make sure they make sense:
image

Also, please test with this new method and let me know if you like this approach 👍

from docker-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.