Synapse upload file limits Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
HelloGoodbye
Posts: 8
Joined: Tue Feb 11, 2020 5:08 am

Synapse upload file limits

Post by HelloGoodbye »

First, thanks for adding Matrix Synapse!

I have tried following the dietpi config docs but adding

Code: Select all

max_upload_size: 10M
to

Code: Select all

/mnt/dietpi_userdata/synapse/homeserver.yaml.d/99-dietpi.yaml
and reloading config doesn't seem to change the 50MB limit in place. I have also tried editing max_upload_size in

Code: Select all

/mnt/dietpi_userdata/synapse/homeserver.yaml
then reloading but it makes no difference either. Any help would be appreciated.
User avatar
MichaIng
Site Admin
Posts: 3357
Joined: Sat Nov 18, 2017 6:21 pm

Re: Synapse upload file limits

Post by MichaIng »

Could you try to restart the server instead:

Code: Select all

systemctl restart synapse
HelloGoodbye
Posts: 8
Joined: Tue Feb 11, 2020 5:08 am

Re: Synapse upload file limits

Post by HelloGoodbye »

I had previously tried stopping and starting synapse the same way but it too fail. However, restarting synapse did the trick. Thank you.

If I would like to change the upload file storage location would I ass this to the 99-config too and if so would I need to comment out the old location in the other config? Thanks
User avatar
MichaIng
Site Admin
Posts: 3357
Joined: Sat Nov 18, 2017 6:21 pm

Re: Synapse upload file limits

Post by MichaIng »

You should be able to override it via the 99-config, that way you can leave the original/default config untouched, as fallback or to easily restore the default value.
rubinski
Posts: 2
Joined: Fri Jul 30, 2021 10:15 am

Re: Synapse upload file limits

Post by rubinski »

Hi and thanks a lot for your great Project. I am running Dietpi on an Raspberry 3 with lighttpd as a webserver. So currently I installed Synapse and could not find any Manual. Do you have a step-by-step Manual for running Synapse with lighttpd? Is it possible to change the webserver afterwards to nginx or Apache?
User avatar
Joulinar
Posts: 5998
Joined: Sat Nov 16, 2019 12:49 am

Re: Synapse upload file limits

Post by Joulinar »

We have a small section within our docs https://dietpi.com/docs/software/social/#synapse
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3357
Joined: Sat Nov 18, 2017 6:21 pm

Re: Synapse upload file limits

Post by MichaIng »

Synapse uses an internal webserver, so does not require Lighttpd or anything like that :?. Or do you mean to have a reverse proxy in front of it? If so for what purpose?
rubinski
Posts: 2
Joined: Fri Jul 30, 2021 10:15 am

Re: Synapse upload file limits

Post by rubinski »

Hello, I refer to this manual:

https://matrix-org.github.io/synapse/la ... rtificates

"he default configuration exposes a single HTTP port on the local interface: http://localhost:8008. It is suitable for local testing, but for any practical use, you will need Synapse's APIs to be served over HTTPS.

The recommended way to do so is to set up a reverse proxy on port 8448"

https://matrix-org.github.io/synapse/la ... proxy.html

That´s the reason why I have asked for that. Problem is I do not have a deeper understanding of those things. Maybe someone can give me a little help what exactly is needed to configure /mnt/dietpi_userdata/synapse/homeserver.yaml, /mnt/dietpi_userdata/synapse/homeserver.yaml.d/00-dietpi.yaml and /mnt/dietpi_userdata/synapse/homeserver.yaml.d/99-local.yaml. Thank you.
User avatar
Joulinar
Posts: 5998
Joined: Sat Nov 16, 2019 12:49 am

Re: Synapse upload file limits

Post by Joulinar »

at the moment we are working on a Blog post giving some inside into Matrix Syanpse. It's in an early draft status and might take some time to complete. Just watch our blog at https://dietpi.com/blog/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply