Comments (4)
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.
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.
@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.
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:
Also, please test with this new method and let me know if you like this approach 👍
from docker-php.
Related Issues (20)
- Adding custom script fails to start HOT 2
- gRPC can't be found anymore! HOT 1
- Nginx Unit Docker Image Exposes Ports 80 and 443 alongside 8080 and 8443? HOT 1
- ⚠️ Delayed release of v3.1.0 HOT 1
- mkdir() "/var/lib/nginx/body" failed (13: Permission denied) HOT 3
- Cannot start SSUPv3 docker image on Google CloudRun HOT 10
- Improve Horizon Support HOT 3
- nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/site-opts.d/https.conf:2
- Apache container fails to restart HOT 5
- CrashLoop in K8s HOT 1
- Scheduler not working with S6 in new V3 images HOT 3
- Custom start up script not executing HOT 1
- Running the image on Azure and other major cloud providers HOT 4
- Nginx boots up and starts accepting connections when running a non default command. HOT 7
- nginx apt repository GPG expired HOT 13
- Laravel Scheduler/Queue Worker HEALTHCHECK Fails (Docs Bug?) HOT 1
- PHP unit ignores PHP_UPLOAD_MAX_FILE_SIZE HOT 1
- PHP_MAX_EXECUTION_TIME is not set HOT 1
- Add PHP 8.4-rc support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-php.