Huang

Huang

Emby Tutorial for XiaoYa

5e6d72d14e2e8_embyfanlogo[1]

一. Do not perform independent reverse proxy, IP (domain name) direct connection#

1. Preparation#

  • xiaoya's docker is already installed (this tutorial uses host mode installation, bridge mode requires some details modification, mainly port correspondence)
  • Emby's docker is already installed
  • Public IP (V4 or V6) + domain name (you need to know how to use DDNS)
  • Downloaded metadata (downloaded from xiaoya)

2. Operation process#

  1. In xiaoya's folder, configure the following three files: docker_address.txt, docker_address_ext.txt, emby_server.txt, as follows:
  • docker_address: xiaoya's internal IP + port, for example, http://192.168.1.2:6789

  • docker_address_ext: xiaoya's public IP + port, for example, [http://123.5.2.9:6789, here I recommend using a domain name because most people's public IP will change, a domain name will be more convenient, http://abc.com:6789]

    • Here, please note that if you are using a public v6 network, it needs to be written as http://[240e:456:5f88:1988:12xh:2abc:x798:1234]:6789 mode, with [], and still recommend using a domain name mode.
  • emby_server: emby's internal address, for example: http://192.168.1.2:8096

  • After configuring the above files, restart your xiaoya. Next, upload your metadata. Change the downloaded metadata (mp4 extension) to a zip extension. Note that you do not need to modify the strm file. It will be automatically replaced through 2345 or 2346. Then upload it to the folder mapped by your emby, assuming you map it to /mnt/media/xiaoya. We will upload it here, and then use unzip xxx.zip to decompress your metadata. After completing the above steps, go to emby to add your media library (if you access it through 2346 on the external network, if you access it through 2345 on the internal network). After scanning the media library, you can watch it. At this time, it is a 302 redirect.

二. Perform independent reverse proxy without using HTTPS access#

1. Preparation#

  • xiaoya's docker is already installed (this tutorial uses host mode installation, bridge mode requires some details modification, mainly port correspondence)
  • Emby's docker is already installed
  • Public IP (V4 or V6) + domain name (you need to know how to use DDNS)
  • Downloaded metadata (downloaded from xiaoya)

2. Operation process#

  1. In xiaoya's folder, configure the following three files: docker_address.txt, docker_address_ext.txt, emby_server.txt, as follows:

  2. After configuring the above files, restart your xiaoya. Next, upload your metadata. Change the downloaded metadata (mp4 extension) to a zip extension. Note that you do not need to modify the strm file. It will be automatically replaced through 2345 or 2346. Then upload it to the folder mapped by your emby, assuming you map it to /mnt/media/xiaoya. We will upload it here, and then use unzip xxx.zip to decompress your metadata. After completing the above steps, go to emby to add your media library (if you access it through 2346 on the external network, if you access it through 2345 on the internal network). After scanning the media library, you can watch it. At this time, it is a 302 redirect.

  3. At this time, your emby server has been reverse proxied twice. The first time is emby's 8096 being reverse proxied by xiaoya's 2345 or 2346. The second time is 2345 or 2346 being reverse proxied by our independent server. Assuming you use port 8080, it is now the reverse proxy server's port 8080 to reverse proxy xiaoya's port 2345 or 2346. Here, let's unify it. It is all reverse proxied to port 2346. After all, whether you are in the internal network or external network, you can access it through the public network.

三. Perform independent reverse proxy using HTTPS access#

1. Preparation#

  • xiaoya's docker is already installed (this tutorial uses host mode installation, bridge mode requires some details modification, mainly port correspondence)
  • Emby's docker is already installed
  • Public IP (V4 or V6) + domain name (you need to know how to use DDNS)
  • Downloaded metadata (downloaded from xiaoya)

2. Operation process#

  1. In xiaoya's folder, configure the following three files: docker_address.txt, docker_address_ext.txt, emby_server.txt, as follows:

    • docker_address: xiaoya's internal IP + port, for example, http://192.168.1.2:6789
    • docker_address_ext: xiaoya's corresponding https domain name, for example, https://xiaoya.abc.com
      • Here, please note that the domain name of xiaoya here can be reverse proxied or not, but it must be https.
      • The reverse proxied xiaoya must not add cross-domain and websocket parameters!!!
    • emby_server: emby's internal address, for example: http://192.168.1.2:8096
  2. After configuring the above files, restart your xiaoya. Don't forget to configure your emby reverse proxy. Here, you reverse proxy xiaoya's port 2346. When configuring, remember to add websocket and cross-domain parameters. Next, upload your metadata. Change the downloaded metadata (mp4 extension) to a zip extension. Note that you do not need to modify the strm file. It will be automatically replaced through 2345 or 2346. Then upload it to the folder mapped by your emby, assuming you map it to /mnt/media/xiaoya. We will upload it here, and then use unzip xxx.zip to decompress your metadata. After completing the above steps, go to emby to add your media library (https://emby.abc.com). After scanning the media library, you can watch it. At this time, it is a 302 redirect.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.