guysoft / PleromaPi

RaspberryPi / CustomPiOS distro that run Pleroma out of the box
GNU General Public License v3.0
35 stars 1 forks source link

Can't upload images to instance #9

Closed ghost closed 2 years ago

ghost commented 3 years ago

Hi! I tried to set up an instance using release 0.2.0 and i got it working for the most part. Posts worked and everything federated properly however, whenever i tried to upload images, be it for posts or for profile stuff, i've gotten various errors.

install details

steps to reproduce

specific error messages

steps taken to try fix

despite this and numerous server reboots, it sadly still didn't end up working. Currently don't have it currently installed on the PI but will gladly re-install to attempt further troubleshooting :P

much appreciated!

guysoft commented 3 years ago

I think the cause is nginx-proxy limiting the max upload size. Will find time to look in to it

guysoft commented 3 years ago

Ok, I think what would solve this would be to add this to nginx-proxy.

client_max_body_size 1g;

The way to do this is to create a file "comnmon_settings" in the docker-compose.yml folder of nginx proxy. And the set it like this:

  - ./common_settings:/etc/nginx/vhost.d/yourdomain.com_location:ro

Where ''yourdomain.com'' is your pleroma domain.

You need to add this both in the nginx service and also the dockergen volume sections.

guysoft commented 2 years ago

Fixed by: https://github.com/guysoft/PleromaPi/commit/22b60f2fd3d3e1a153f1a711f5bd1ce62b10457c

If you can try the latest nightly to confirm that would be great :)