docker-flare icon indicating copy to clipboard operation
docker-flare copied to clipboard

怎么开启https?

Open sangshaoxuan opened this issue 2 years ago • 4 comments
trafficstars

你遇到了什么样的麻烦?

怎么开启https?没有找到说明

如何复现这个问题?

·

应用版本

03年5月版本

搜索

  • [X] 在提交这个表格之前,我已经进行了相关问题搜索,没有找到相关的问题或解决方案。

补充描述

No response

sangshaoxuan avatar Aug 06 '23 03:08 sangshaoxuan

😒 使用 nginx 等反代呀。。。

LightAPIs avatar Aug 06 '23 03:08 LightAPIs

https://www.zhihu.com/search?type=content&q=flare 看作者知乎,里面提到使用traefik进行反代。

thelittlefox avatar Oct 13 '23 09:10 thelittlefox

可以使用nginx反向代理

将文件命名为 flare_ng.conf 放在nginx 的 conf.d 目录下

其中你的IP可以是本地的内网IP,如果是外网IP可能要放通防火墙

`upstream 你的域名 { server 你的IP:5005; }

server { listen 80 ; listen 443 ssl ; ssl_certificate 尾缀是pem的证书文件路径; ssl_certificate_key 尾缀是key的证书文件路径; server_name 你的域名 ; if ($scheme != "https") { return 301 https://$host$request_uri; } location / { proxy_pass http://你的IP:5005; proxy_set_header Via "nginx"; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_set_header Connection $connection_upgrade; proxy_cache_bypass $http_upgrade; client_max_body_size 0; }

}`

lioooooh avatar Nov 08 '23 09:11 lioooooh