Abdullah Baamer 0 Posted January 8, 2021 Share Posted January 8, 2021 (edited) السلام عليكم ورحمة الله وبركاته امبي سيرفر لا يوجد فيه خيار تحديد السرعة للمستخدمين الا عن طريق برنامج nginx قمت بتحميل برنامج (nginx and nssm.exe) c:\nginx(المسار) D:\emby (مسار امبي سيرفر ) ولكن اريد الإعدادت لملف nginx.conf Edited January 8, 2021 by Abdullah Baamer Link to comment Share on other sites More sharing options...
Luke 37049 Posted January 8, 2021 Share Posted January 8, 2021 @Abobader Link to comment Share on other sites More sharing options...
Abdullah Baamer 0 Posted January 8, 2021 Author Share Posted January 8, 2021 @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 comment Share on other sites More sharing options...
Luke 37049 Posted January 8, 2021 Share Posted January 8, 2021 Ok @pir8radio may have some tips on that. Link to comment Share on other sites More sharing options...
pir8radio 1292 Posted January 8, 2021 Share Posted January 8, 2021 to limit bandwidth per connection: location /download/ { limit_rate 300k; } To limit the person to a specific number of connections as well as limit their bandwidth: location /download/ { limit_conn addr 3; limit_rate 300k; } more info here: https://docs.nginx.com/nginx/admin-guide/security-controls/controlling-access-proxied-http/ 2 Link to comment Share on other sites More sharing options...
Abdullah Baamer 0 Posted January 8, 2021 Author Share Posted January 8, 2021 (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 Edited January 8, 2021 by Abdullah Baamer Link to comment Share on other sites More sharing options...
pir8radio 1292 Posted January 8, 2021 Share Posted January 8, 2021 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 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 comment Share on other sites More sharing options...
Abdullah Baamer 0 Posted January 9, 2021 Author Share Posted January 9, 2021 @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 comment Share on other sites More sharing options...
pir8radio 1292 Posted January 9, 2021 Share Posted January 9, 2021 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 comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now