Closed Dev-Wiki closed 2 years ago
威联通的系统可以在线体验 QNAP 在线体验 | QNAP https://www.qnap.com.cn/zh-cn/live-demo
贴frpc.ini 和容器配置
[common]
server_addr = xxx
server_port = xxx
token= xxx
# Admin UI
admin_addr = 127.0.0.1
admin_port = xxx
admin_user = xxx
admin_pwd = xxx
# TCP 多路复用
tcp_mux = false
# 连接池上限
max_pool_count = 1
[devwiki_nas]
type = http
local_ip=127.0.0.1
local_port=80
custom_domains = nas.devwiki.net
[devwiki_nas_https]
type = https
custom_domains = nas.devwiki.net
plugin = https2http
plugin_local_addr = 127.0.0.1:80
# HTTPS 证书相关的配置
plugin_crt_path = ./ssl/nas.crt
plugin_key_path = ./ssl/nas.key
plugin_host_header_rewrite = 127.0.0.1
plugin_header_X-From-Where = frp
配置, 容器配置 http 正常
[common] server_addr = xxx server_port = xxx token= xxx # Admin UI admin_addr = 127.0.0.1 admin_port = xxx admin_user = xxx admin_pwd = xxx # TCP 多路复用 tcp_mux = false # 连接池上限 max_pool_count = 1 [devwiki_nas] type = http local_ip=127.0.0.1 local_port=80 custom_domains = nas.devwiki.net [devwiki_nas_https] type = https custom_domains = nas.devwiki.net plugin = https2http plugin_local_addr = 127.0.0.1:80 # HTTPS 证书相关的配置 plugin_crt_path = ./ssl/nas.crt plugin_key_path = ./ssl/nas.key plugin_host_header_rewrite = 127.0.0.1 plugin_header_X-From-Where = frp
配置, 容器配置 http 正常
本地使用 windows系统按照上述配置是可以的, https 也正常
把证书挂在到容器里,在把 plugin_crt_path 和 plugin_key_path 的路径改为容器内的路径.
把证书挂在到容器里,在把 plugin_crt_path 和 plugin_key_path 的路径改为容器内的路径.
增加 这两个路径 映射到 文件路径里面么?
威联通的这个容器自己是没有存储路径的, 是需要映射本地的文件夹路径. 比如
nas盘的: /share/Container/container-station-data/application/frp
, 对应为 frpc 的 /frpc
文件夹
那路径就是 /frp/ssl/nas.crt
那路径就是 /frp/ssl/nas.crt
对对, 我就改成这样了, 可以了 谢谢, 我整理下, 使用你的镜像, 我写个教程文章
这个可以关闭了
这个可以关闭了
使用环境为 威联通的 nas, http 配置正常.
nas中 配置挂载点:![image](https://user-images.githubusercontent.com/12946956/158055069-16cfbb68-c0ec-4666-b1b5-1db2dda0c098.png)
不提示找不到 key, 提示找不到 crt, 尝试了直接放在 frp 根目录 也是不行.
配置https 证书, 提示无法找到文件, 使用windows系统测试 证书都正常.