1、ipv6方式 [nas ip地址]:8096
2、公网IP访问
3、使用nginx代理quickconnect
群晖控制面板/终端机启用ssh
然后使用ssh登录
ssh nas用户名@nasip
a、群晖得nginx安装路径在/etc/nginx
/etc/nginx$ ls conf.d fastcgi_params koi-win nginx.conf nginx.conf.run scgi_params uwsgi_params fastcgi.conf koi-utf mime.types nginx.conf.default proxy.conf sites-enabled win-utf
查看nginx.conf监听5000 5001端口 有include /usr/syno/share/nginx/conf.d/dsm.*.conf;
server { listen 5000 default_server; listen [::]:5000 default_server; server_name _; gzip on; include conf.d/alias.*.conf; root /usr/syno/synoman; index index.cgi; ignore_invalid_headers off; include /usr/syno/share/nginx/conf.d/dsm.*.conf; include conf.d/dsm.*.conf; location = / { try_files $uri /index.cgi$is_args$query_string; }
c、到/usr/syno/share/nginx/conf.d/下 按dsm.*.conf样式创建个dsm.jellyfin.conf
sudo vim dsm.jellyfin.conf
然后按i输入以下文件内容,然后按esc,后输入:wq保存文件,则访问quickconnect.cn/jellyfin即可转发到jellyfin的8096端口
location ^~ /jellyfin/ { proxy_pass http://localhost:8096; }
创建文件后输入sudo systemctl restart nginx重启nginx
sudo systemctl restart nginx
到此设置nginx完成,接下来打开jellyfin设置,在控制台联网下设置基础url为/jellyfin
如果不设置基础url为/jellyfin,登录后会自动跳转到跟地址
原文链接:https://blog.csdn.net/u013005016/article/details/128997711
© 版权声明
声明📢本站内容均来自互联网,归原创作者所有,如有侵权必删除。
本站文章皆由CC-4.0协议发布,如无来源则为原创,转载请注明出处。
THE END