赞
踩
群晖控制面板/终端机启用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://*.quickconnect.cn/jellyfin在外网也能正常访问
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。