1、ipv6方式 [nas ip地址]:8096

2、公网IP访问

3、使用nginx代理quickconnect

群晖控制面板/终端机启用ssh

然后使用ssh登录

ssh nas用户名@nasip

a、群晖得nginx安装路径在/etc/nginx

/etc/nginx$ lsconf.dfastcgi_paramskoi-win nginx.confnginx.conf.runscgi_paramsuwsgi_paramsfastcgi.confkoi-utf mime.typesnginx.conf.defaultproxy.confsites-enabledwin-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_passhttp://localhost:8096;}

创建文件后输入sudo systemctl restart nginx重启nginx

 sudo systemctl restart nginx

到此设置nginx完成,接下来打开jellyfin设置,在控制台联网下设置基础url为/jellyfin

如果不设置基础url为/jellyfin,登录后会自动跳转到跟地址

然后在访问群晖的https://*.quickconnect.cn/jellyfin在外网也能正常访问

理论上该方式适合所有可以设置路径的群晖应用,和没有跳转页面的网页应用