pdulvp / jellyfin-qnap

Jellyfin server packaging for QNAP NAS
https://jellyfin.org
519 stars 33 forks source link

请问是否可以设置代理呢?如果可以,如何设置呢? #91

Open hurui3550 opened 4 months ago

hurui3550 commented 4 months ago

请问是否可以设置代理呢?如果可以,如何设置呢?某些原因,刮削网站不能访问,需要设置。谢谢~~

NanashiTheNameless commented 4 months ago

请问是否可以设置代理呢?如果可以,如何设置呢?某些原因,刮削网站不能访问,需要设置。谢谢~~

rough translation: Can I set up a proxy? If so, how can I set it up? For some reason, the scraping website cannot be accessed and needs to be set up. Thank you~~

iuyo5678 commented 1 month ago

support you have a proxy

  1. ssh login to your qnap nas

  2. sudo -i. then. input Q. Y

  3. cd /share/xxxxxx/.qpkg/jellyfin. xxx is your jellyfin install path like xxx1_DATA xxx2_DATA depends your install

  4. edit the jellyfin.sh add below content after line ": ADD START ACTIONS HERE "

    export http_proxy="http://192.168.168.89:7890"
    export https_proxy="http://192.168.168.89:7890"
    export no_proxy= "192.168.168.0/24,localhost,127.0.0.1"

    you should change to your correct proxy

  5. save jellyfin.sh & and restart jellyfin

hope you can enjoy the proxy service !