GeminiProChat icon indicating copy to clipboard operation
GeminiProChat copied to clipboard

求教如何部署https

Open KittenCN opened this issue 2 years ago • 9 comments

Describe the feature

求教如何部署https

Additional context

No response

Participation

  • [ ] I am willing to submit a pull request for this feature.

KittenCN avatar Dec 20 '23 09:12 KittenCN

部署在Vercel上就是默认https的呀

babaohuang avatar Dec 20 '23 09:12 babaohuang

我是部署在我自己的服务器上了。。

KittenCN avatar Dec 20 '23 10:12 KittenCN

用宝塔反代可以

ruixing1001 avatar Dec 20 '23 15:12 ruixing1001

Both Nginx and Apache HTTP Server are suitable options. If you don't know how to set them up, feel free to ask the chatbot for assistance.

2168028160 avatar Dec 22 '23 06:12 2168028160

Both Nginx and Apache HTTP Server are suitable options. If you don't know how to set them up, feel free to ask the chatbot for assistance.

ok, got it, thx

KittenCN avatar Dec 22 '23 11:12 KittenCN

pnpm run dev --host --https 然后在Cloudflare配置反带代就好。

pankejia2000 avatar Dec 25 '23 06:12 pankejia2000

LZ操作成功了吗?我用nginx卡壳了,通过vim编辑器输入配置信息后没有成功

fanqieniuroutang avatar Dec 26 '23 12:12 fanqieniuroutang

nginx 反向代理就行

server {

    listen 80 ;
    listen [::]:80 ;
    server_name xxxxxxxx.com;

    location / {
    proxy_set_header   X-Forwarded-For $remote_addr;
    proxy_set_header   Host $http_host;
    proxy_pass         "http://127.0.0.1:3000";
    }

}

karateservant avatar Dec 28 '23 12:12 karateservant

直接用宝塔,有专门的设置界面,很容易的

KittenCN avatar Dec 28 '23 14:12 KittenCN