-
Supporting Emby WebUI/iOS Client/Android Client
-
Supporting multiple media sources
-
Auto-detection for platform & system, only showing available players
-
Additional Components: Concealing the real address of the server to avoid IP leakage
-
Download
dist/njs-emby-extlink.js
and put it in nginx working folder -
Insert a line in
nginx.conf
to load NJS engine# Load NJS Engine load_module modules/ngx_http_js_module.so;
-
Add this entry in the first line of emby’s reverse proxy configuration file (
emby.conf
)# change the path from "path-to/njs-emby-extlink.js" js_import embyPlugin from path-to/njs-emby-extlink.js;
-
Add a rewrite rule for root path in
emby.conf
location / { ... ## Emby Nginx Plugin: ExtPlay rewrite ^/Videos/(\d+)/ExtPlay/ /emby/videos/$1/stream redirect; }
-
Add/change the following sections in
emby.conf
location ~* /Users/(\w+)/Items/(\d+) { js_header_filter embyPlugin.contentTypeJson; js_body_filter embyPlugin.addExtLinkFilter buffer_type=string; ## Others proxy_pass http://emby; ... }
location /Emby/Addons/ExtPlay { js_content embyPlugin.handleExtPlay; }
-
Optional: Add/change the following sections to conceal system info
location ~* /System/Info { js_header_filter embyPlugin.contentTypeJson; js_body_filter embyPlugin.concealPublicInfo buffer_type=string; ## Others proxy_pass http://emby; ... }
This project is licensed under AGPL-3.0 License. It used a portion of codes from njs-typescript-starter, which is licensed under MIT License