上篇文章实现了利用frp访问群晖,并且支持http跳转到Https访问,这篇文章主要是讲解怎么样访问群晖里面的plex
Plex是一套媒体播放器及媒体服务器软件,由于Plex Media Server和Plex Media Player组成,主要功能是存储+索引+转码+在线播放。Plex Media Server不是简单地帮你存储分类影音文件,它还能分析影片的信息从而从
IMDB
等数据库补全影片介绍等信息,进行索引以方便搜索。并且支持全平台
步骤如下:
- frps服务端配置如下
[common]
tcp_mux = true
token = nasmrwen
use_compression = true
use_encryption = true
bind_port = 7000
subdomain_host = mrwen.me
vhost_http_port = 5000
vhost_https_port = 5001
- frpc客户端配置如下
# frpc.ini
[common]
tcp_mux = true
use_compression = true
use_encryption = true
token = nasmrwen
server_addr = frps服务器的IP地址
server_port = 7000
admin_addr = 127.0.0.1
admin_port = 7400
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
[nas http]
type = http
local_ip = 127.0.0.1
local_port = 5000
subdomain = nas
use_compression = true
use_encryption = true
[nas https]
type = https
local_ip = 127.0.0.1
local_port = 5001
subdomain = nas
use_compression = true
use_encryption = true
[plex http]
type = tcp
local_port = 32400
remote_port = 32400
subdomain = nas
[Resilio Sync http]
type = tcp
local_port = 28888
remote_port = 28888
subdomain = nas
此时,开启frp的客户端和服务端已经可以http形式访问plex了,但我们想实现https形式访问plex。方法如下
将申请好的证书转换成pfx格式文件,转换方法去这个网站进行转换,记得转换时的密码。链接:https://www.myssl.cn/tools/merge-pfx-cert.html。然后在plex的这个位置将fpx文件、密码、网址等填写上去即可

至此就可以https形式访问plex了,但不能实现从http跳转到https,不知该怎么样解决