nilsuria
nilsuria
RRailway
Created by nilsuria on 8/19/2023 in #✋|help
laravel volume for the image storage
Hi! I have a Laravel application deployed via Github to a Railway service. The app is using a Local Laravel Storage. All is working fine, except the fact that every time that the application is redeploied all uploaded images in the Laravel Storage disappear. I've been trying to use a Volume to solve that issue, but it don't seem to work as when reedeploing it keeps deleting all the images, and the used space in the volume don't increase when I upload images to the app. The issue may be in the route I specify. The local route I use to save the files is /storage/app/public, and I do a "php artisan storage:link" to make a symbolic link from public/storage to /storage/app/public. Which is the correct way of setting the volume mount point to make it work with the Laravel Local Storage? The project ID is 49a4d477-fb25-4e0e-94a5-120cedd527f2 and the Github project is here: https://github.com/nilsuria/TFG-EI-wishapp Thank you in advance!
13 replies
RRailway
Created by nilsuria on 5/14/2023 in #✋|help
How can I modify the nginx configuration in Railway?
I'm getting a "413 Request Entity Too Large" when uploading images to my Laravel app deployed with Railway (which is using Nixpacks). I think that this can be solved by modifying the "client_max_body_size 20M;" in in /etc/nginx/nginx.conf. However, I can't figure out how can I access this configuration file Railway. How can I make such a configuration in Railway?
19 replies
RRailway
Created by nilsuria on 5/13/2023 in #✋|help
How can I modify the nginx configuration in Railway?
Hi! I'm getting a "413 Request Entity Too Large" when uploading photos to my deployed app. How can I modify the nginx.conf file in Railway to change the client_max_body_size variable? I've already posted this question on stackoverflow with no answers: https://stackoverflow.com/questions/76216476/how-can-i-modify-the-nginx-configuration-in-railway Any help will be really appreciated!
3 replies