Bandwidth /trafficshaping

Hallo guys,
I have a Seafile Server on a Raspi for some years now, and everything works great.

Now i wanted to share some Downloadlinks (Pics from Children etc) with my Familiy over the net. The Problem is, that i dont have a good Internet connection and when more people download videos, everything is getting really laggy.

Is there an Option or else where i can set the Up- and Download Bandwith only for internet conections in seafile?
Wondershaper also affects the LAN, and trickle doesnt work well. ( Downloads start but end after a few seconds with errors )

If you are using the Apache as the reverse proxy server, I recall there is a module there doing the job.
You probably can check out this:
https://www.devside.net/wamp-server/download-speed-limit-and-throttling-for-apache-2-4

Thanks for the reply.
I am not using Apache but thanks for the Idea it also works on Nginx.

just edit /etc/nginx/sites-available/seahub

limit_conn_zone $binary_remote_addr zone=perip:10m;
limit_conn_zone $server_name zone=perserver:10m;

server {

limit_conn perip 1;
limit_conn perserver 2;
limit_rate_after 3m;
limit_rate 900k;
}

this will set the connections per ip to 1 and 2 connections per server or location
When a client start a download it will reduce the rate to 900kbit after 3MB .

for more info Module ngx_http_limit_conn_module

The solution in your case is:

Many routers have an option to prioritize traffic. E.g. in the fritzbox one can set background services. If you enter the Seafile host or the specific ports there the traffic is going to have a low priority afterwards and everyone can use the internet as usual (even while people download something).

This feature is called QoS (Quality of Service)…