babaohuang / GeminiProChat

Minimal web UI for GeminiPro.
https://geminiprochat.com
MIT License
4.26k stars 12.34k forks source link

求教如何部署https #46

Closed KittenCN closed 8 months ago

KittenCN commented 8 months ago

Describe the feature

求教如何部署https

Additional context

No response

Participation

babaohuang commented 8 months ago

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

KittenCN commented 8 months ago

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

ruixing1001 commented 8 months ago

用宝塔反代可以

2168028160 commented 8 months ago

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.

KittenCN commented 8 months ago

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

pankejia2000 commented 8 months ago

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

fanqieniuroutang commented 8 months ago

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

karateservant commented 8 months ago

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";
    }

}

KittenCN commented 8 months ago

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