mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2374] 请问dashboard如何使能https? #1885
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#1885
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @galaxyskyknight on GitHub (Apr 30, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2374
默认7500(或者换其他端口)只能支持https. frps里也没有找到配置dashboard支持https的地方,现在chrome等浏览器都是强制跳https,不做点配置根本访问不到dashboard
@fatedier commented on GitHub (Apr 30, 2021):
@galaxyskyknight commented on GitHub (Apr 30, 2021):
是可以访问,但chrome、edge等浏览器会强制吧http://xxx转换成https://xxx导致SSL错误,需要在chrome里设置
参考:
https://blog.csdn.net/u011215669/article/details/93086915
@fatedier commented on GitHub (Apr 30, 2021):
并不会,blog 内容仅供参考
@galaxyskyknight commented on GitHub (Apr 30, 2021):
不太会配nginx,现在netstat看到的是7500是由frps进程监听的,所以它的webserver是内置的?如何配成dashboard由nginx去起?
@galaxyskyknight commented on GitHub (May 1, 2021):
具体怎么配的?给个nginx配置示例看看?frps.ini要改吗?
@xqzr commented on GitHub (May 4, 2021):
@galaxyskyknight commented on GitHub (May 7, 2021):
感谢,已搞定,另外@fatedier 大佬,frp dashboard能否自定义style和banner标题啊,看着太丑了。。。。而且登录输入用户名密码能否有个portal内嵌到网页里面,不用弹出对话框的形式,很不友好?这样访问端口很容易泄露网站内容。
@fatedier commented on GitHub (May 7, 2021):
@galaxyskyknight 可以在 frps.ini 中配置
asserts_dir参数指定你自己的 web 资源,如果你有能力的话,可以自行开发前端页面。@ax2009live commented on GitHub (May 13, 2021):
大家都想保证安全,在服务器端实现http - https,
ngnix 反代是一个方法,也可以使用 frp 插件 https2http,简单粗暴有效;
可以参考关闭的 issue, https://github.com/fatedier/frp/issues/2185
如果通过 docker实现,更灵活,( 你可以用 docker 在同一 vps 运行多个 frps fprc )
证书位置:/root/nginx/certs/
配置文件:/root/conf/frpc.ini
/root/conf/frpc.ini
如果frps frpc 都是用 docker 创建的,避免frps frpc 长期运作后,产生莫名其妙的问题,每天定时重启容器;
crontab -e 增加每天6时定时执行重启所有容器(每天6时0分执行):
0 6 * * * docker restart $(docker ps -a | awk '{ print $1}' | tail -n +2)自己亲测:每天定期重启 docker 后,再也不会出现连接不上的问题,无人为干预的情况下,已稳定运行几个月;
@tiagogbarbosa commented on GitHub (May 19, 2021):
docker restart $(docker ps -a | awk '{ print $1}' | tail -n +2)
Is the same as
docker restart $(docker ps -aq)
;)
@galaxyskyknight commented on GitHub (May 21, 2021):
谢谢楼上,我已经用nginx反代搞定了,也不麻烦。
@github-actions[bot] commented on GitHub (Jul 23, 2021):
Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.
@ax2009live commented on GitHub (Apr 15, 2023):
@tiagogbarbosa 你是对的,简洁多了;厉害,谢谢!
docker ps --help 查看帮助
Usage: docker ps [OPTIONS]
List containers
Options:
-a, --all Show all containers (default shows just running) 显示所有容器(默认仅显示运行的容器)
-f, --filter filter Filter output based on conditions provided
--format string Pretty-print containers using a Go template
-n, --last int Show n last created containers (includes all states) (default -1)
-l, --latest Show the latest created container (includes all states)
--no-trunc Don't truncate output
-q, --quiet Only display container IDs 仅显示容器的 ID 号;
-s, --size Display total file sizes
docker restart $(docker ps -aq) 重新启动所有的容器
docker restart $(docker ps -q) 重新启动正运行的容器