Jump to content

تحديد سرعة التحميل


Abdullah Baamer

Recommended Posts

Abdullah Baamer

السلام عليكم ورحمة الله وبركاته

امبي سيرفر لا يوجد فيه خيار تحديد السرعة للمستخدمين الا عن طريق برنامج

nginx

قمت بتحميل برنامج

(nginx and nssm.exe)

c:\nginx(المسار)

D:\emby (مسار امبي سيرفر )

ولكن اريد الإعدادت لملف

nginx.conf

Edited by Abdullah Baamer
Link to post
Share on other sites
Abdullah Baamer

@Luke

Sorry..

My language is not good.

The question

I need to limit download speed for users by using nginx.

C:\nginx (source)

D:\emby (source emby server)

How to configure (nginx.conf) with a right way.

local host: 10.10.10.10

port:80

Link to post
Share on other sites
Abdullah Baamer
Posted (edited)

@pir8radio

i setup nginx ... emby server is stop like this

.local ip : 10.10.10.10

port :80

OS: windows Server 2016

 

first i want to configure nginx.conf to start emby server

Screenshot_2021-01-08 Welcome to nginx .png

Edited by Abdullah Baamer
Link to post
Share on other sites
pir8radio
Just now, Abdullah Baamer said:

@pir8radio

i setup nginx ... emby server is stop like this

.locla ip : 10.10.10.10

port :80

OS: windows Server 2016

Screenshot_2021-01-08 Welcome to nginx .png

Oh.... you still have to setup nginx to work with emby and all of that....   look around on here, there are a few "how-to's" to get nginx installed and setup...   you can check out this link for a basic config for nginx...    But you have a lot of work to do before you start worrying about limiting bandwidth   🙂 

 

Link to post
Share on other sites
Abdullah Baamer

@pir8radio

thanks

nginx work wtih emby

but download limit not work yet

i used this script

# Add this outside of you server block
limit_conn_zone $binary_remote_addr zone=addr:10m;

# Bandwith limit (inside server block)
location ~ /emby/Items/(.*)/Download$ {
       # Send traffic to the backend
       proxy_pass http://10.10.10.10:8096;
       proxy_set_header Range $http_range;
       proxy_set_header If-Range $http_if_range;
       proxy_set_header X-Real-IP $remote_addr;
       proxy_set_header Host $host;
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

       # Send websocket data to the backend aswell
       proxy_http_version 1.1;
       proxy_set_header Upgrade $http_upgrade;
       proxy_set_header Connection "upgrade";

       limit_rate 1700k; # Speed limit (here is on kb/s)
       limit_conn addr 3; # Number of simultaneous downloads per IP
       limit_conn_status 460;
       proxy_buffering on;
}

source Emby Server in

D:\system\dashboard-ui\item\item.html

here is the file

nginx.conf

Link to post
Share on other sites
pir8radio
3 hours ago, Abdullah Baamer said:

@pir8radio

thanks

nginx work wtih emby

but download limit not work yet

i used this script


# Add this outside of you server block
limit_conn_zone $binary_remote_addr zone=addr:10m;

# Bandwith limit (inside server block)
location ~ /emby/Items/(.*)/Download$ {
       # Send traffic to the backend
       proxy_pass http://10.10.10.10:8096;
       proxy_set_header Range $http_range;
       proxy_set_header If-Range $http_if_range;
       proxy_set_header X-Real-IP $remote_addr;
       proxy_set_header Host $host;
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

       # Send websocket data to the backend aswell
       proxy_http_version 1.1;
       proxy_set_header Upgrade $http_upgrade;
       proxy_set_header Connection "upgrade";

       limit_rate 1700k; # Speed limit (here is on kb/s)
       limit_conn addr 3; # Number of simultaneous downloads per IP
       limit_conn_status 460;
       proxy_buffering on;
}

source Emby Server in

D:\system\dashboard-ui\item\item.html

here is the file

nginx.conf 4.68 kB · 0 downloads

that should work...  what speed are you downloading at?  and you are connecting through nginx right?  not on a local netowork.    you have limited the download to 1.7mb/s    maybe try something smaller first?

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...