five-server icon indicating copy to clipboard operation
five-server copied to clipboard

can't enable HTTPS on VSCode

Open HaleyHalcyon opened this issue 2 months ago • 5 comments

Describe the bug I tried enabling HTTPS (using a self-signed test certificate) using Five Server on VSCode, but all the documentation I can find is in Typescript, and not on what to put into settings.json. I've tried this, but VSCode doesn't recognize this:

{
    // ...
    "fiveServer.https": true,
    "fiveServer.useLocalIp": true
}

Have a question? Join the discussions instead.

HaleyHalcyon avatar Oct 21 '25 04:10 HaleyHalcyon

You can create a fiveserver.config.cjs file with the option https: true, just like here https://github.com/yandeu/five-server/blob/main/fiveserver.config.cjs

yandeu avatar Oct 21 '25 09:10 yandeu

Where does that file go?

HaleyHalcyon avatar Oct 23 '25 23:10 HaleyHalcyon

In the root of your project.

yandeu avatar Oct 24 '25 11:10 yandeu

Does that mean the root of the Git repository, or the /docs subdirectory that is the root of the Website? Does it depend on which directory I open on VS Code?

HaleyHalcyon avatar Oct 24 '25 11:10 HaleyHalcyon

It has to be in the root of the vscode editor, which I guess will be the same as the root of your git repository. Keep in mind, five server does not yet support multi-root workspace yet.

yandeu avatar Oct 24 '25 12:10 yandeu