chatgpt-demo icon indicating copy to clipboard operation
chatgpt-demo copied to clipboard

SSL Installation for --host

Open MrElie opened this issue 2 years ago • 1 comments

What operating system are you using?

Linux

What browser are you using?

Chrome

Describe the bug

I self deployed chatgpt demo and i must say its wonderful and I'm enjoying it so much.

i used pnpm and using --host to access it from my mobile or Windows PC.

however I am lost to how I could sign a certificate to make the browser 123.123.123.123:3000 work on https ?

any help is highly appreciated. thank you !

What prompt did you enter?

I self deployed chatgpt demo and i must say its wonderful and I'm enjoying it so much.

i used pnpm and using --host to access it from my mobile or Windows PC.

however I am lost to how I could sign a certificate to make the browser 123.123.123.123:3000 work on https ?

any help is highly appreciated. thank you !

Console Logs

No response

Participation

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

MrElie avatar May 30 '23 11:05 MrElie

You may want to use vite's server.https option, see https://cn.vitejs.dev/config/server-options.html#server-https

And try editing options in astro.config.mjs. https://docs.astro.build/en/reference/configuration-reference/#vite

ddiu8081 avatar Jun 02 '23 03:06 ddiu8081