[GH-ISSUE #2185] dashboard能否支持https? #1740

Closed
opened 2026-05-05 13:06:58 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @wengzuyang on GitHub (Jan 12, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2185

目前dashboard用的是http,用户名和密码容易泄漏,能否支持https?

Originally created by @wengzuyang on GitHub (Jan 12, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2185 目前dashboard用的是http,用户名和密码容易泄漏,能否支持https?
gitea-mirror 2026-05-05 13:06:58 -06:00
Author
Owner

@yuyulei commented on GitHub (Jan 15, 2021):

可能近期不支持。临时简单的做法有,可能前面架个 Nginx 接收 https,代理到 frp dashboard,你看是否可以?

<!-- gh-comment-id:760755719 --> @yuyulei commented on GitHub (Jan 15, 2021): 可能近期不支持。临时简单的做法有,可能前面架个 Nginx 接收 https,代理到 frp dashboard,你看是否可以?
Author
Owner

@ax2009live commented on GitHub (Feb 5, 2021):

你可以在服务器创建一个 frpc 客户端,(用 docker 安装一个 frpc 客户端)

[common]
server_addr =  服务器的 ip
server_port = 7000
token = 密码

[www.examda.com-443]
type = https
custom_domains = www.examda.com
# 你的域名
plugin = https2http
plugin_local_addr = 服务器的 ip:7500
# dashboard 服务器的 IP 和端口
plugin_crt_path = /root/nginx/certs/fullchain.pem
plugin_key_path = /root/nginx/certs/key.pem
# 证书位置,可以通过 docker 申请安装,可以通过 crontab -e 增加每月定时执行这个动作
# https://bb.ax2009live.com/install-the-certificate-automatically-update-every-month/
plugin_host_header_rewrite = 127.0.0.1
plugin_header_X-From-Where = frp
use_encryption = true
use_compression = true
tls_enable = true

https://www.examda.com 就可以访问 http://www.examda.com:7500

<!-- gh-comment-id:773870858 --> @ax2009live commented on GitHub (Feb 5, 2021): 你可以在服务器创建一个 frpc 客户端,(用 docker 安装一个 frpc 客户端) <pre> [common] server_addr = 服务器的 ip server_port = 7000 token = 密码 [www.examda.com-443] type = https custom_domains = www.examda.com # 你的域名 plugin = https2http plugin_local_addr = 服务器的 ip:7500 # dashboard 服务器的 IP 和端口 plugin_crt_path = /root/nginx/certs/fullchain.pem plugin_key_path = /root/nginx/certs/key.pem # 证书位置,可以通过 docker 申请安装,可以通过 crontab -e 增加每月定时执行这个动作 # https://bb.ax2009live.com/install-the-certificate-automatically-update-every-month/ plugin_host_header_rewrite = 127.0.0.1 plugin_header_X-From-Where = frp use_encryption = true use_compression = true tls_enable = true </pre> https://www.examda.com 就可以访问 http://www.examda.com:7500
Author
Owner

@wengzuyang commented on GitHub (Feb 5, 2021):

你可以在服务器创建一个frpc客户端,(用docker安装一个frpc客户端)
[common]
server_addr = 服务器的ip
server_port = 7000
token = 密码

[www.examda.com-443]
type = https
custom_domains = www.examda.com
#你的域名
plugin = https2http
plugin_local_addr = 服务器的ip:7500
#dashboard服务器的IP和端口
plugin_crt_path = /root/nginx/certs/fullchain.pem
plugin_key_path = /root/nginx/certs/key.pem
#证书位置,
#可以通过docker申请安装,可以通过crontab -e 增加每月定时执行这个动作;
plugin_host_header_rewrite = 127.0.0.1
plugin_header_X-From-Where = frp

https://www.examda.com 就可以访问 http://www.examda.com:7500

好主意,可以作为临时解决方案

<!-- gh-comment-id:773902613 --> @wengzuyang commented on GitHub (Feb 5, 2021): > 你可以在服务器创建一个frpc客户端,(用docker安装一个frpc客户端) > [common] > server_addr = 服务器的ip > server_port = 7000 > token = 密码 > > [www.examda.com-443] > type = https > custom_domains = [www.examda.com](http://www.examda.com) > #你的域名 > plugin = https2http > plugin_local_addr = 服务器的ip:7500 > #dashboard服务器的IP和端口 > plugin_crt_path = /root/nginx/certs/fullchain.pem > plugin_key_path = /root/nginx/certs/key.pem > #证书位置, > #可以通过docker申请安装,可以通过crontab -e 增加每月定时执行这个动作; > plugin_host_header_rewrite = 127.0.0.1 > plugin_header_X-From-Where = frp > > https://www.examda.com 就可以访问 http://www.examda.com:7500 好主意,可以作为临时解决方案
Author
Owner

@github-actions[bot] commented on GitHub (May 14, 2021):

Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.

<!-- gh-comment-id:840916413 --> @github-actions[bot] commented on GitHub (May 14, 2021): Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1740
No description provided.