config.yaml if HTTPS is enabled, instead of using --cert and --cert-key.~doc directory, I can't find a documentation explaining entries in config.yaml. Luckily, now the config.yaml has a very small number of entries. However, the lack of documentation is always confusing, especially after the file becomes complicated in the future.~ Document that generated self signed certificates go into the data directoryBTW, I have another question: When HTTPS is enabled but the --cert argument is not used, which certificate will be used?
Thanks.
Hi @KaneGreen!
The certificate path is mentioned in the guide and the FAQ explains exactly how the config file works.
https://github.com/cdr/code-server/blob/master/doc/FAQ.md#how-does-the-config-file-work
When HTTPS is enabled but the --cert argument is not used, which certificate will be used?
Also explained in the FAQ.
https://github.com/cdr/code-server/blob/master/doc/FAQ.md#how-should-i-expose-code-server-to-the-internet
Soon we do plan on making the cli help output more useful and detailed.
Hi @KaneGreen!
The certificate path is mentioned in the guide and the FAQ explains exactly how the config file works.
https://github.com/cdr/code-server/blob/master/doc/FAQ.md#how-does-the-config-file-work
When HTTPS is enabled but the --cert argument is not used, which certificate will be used?
Also explained in the FAQ.
https://github.com/cdr/code-server/blob/master/doc/FAQ.md#how-should-i-expose-code-server-to-the-internet
Sir, I've read these. And I know cert will be generated if no cert path is provided. But, where the generated cert are saved?
Sir, I've read these. And I know cert will be generated if no cert path is provided. But, where the generated cert are saved?
Is the FAQ not clear enough about how the config file works?
Sir, I've read these. And I know cert will be generated if no cert path is provided. But, where the generated cert are saved?
Great point. It's the data directory but we should document that.
Sir, I've read these. And I know cert will be generated if no cert path is provided. But, where the generated cert are saved?
Is the FAQ not clear enough about how the config file works?
Oh, sorry. I understood. Firstly, I saw cert: false, I thought cert can only be a boolean value. Now, I found I was wrong. Thanks for your answer.
Sir, I've read these. And I know cert will be generated if no cert path is provided. But, where the generated cert are saved?
Great point. It's the data directory but we should document that.
I checked the data directory I specified as --user-data-dir but I can’t find the certificate. Did you mean something else by “data directory”?
I found the certificate in /tmp/code-server/, and it’s implemented in
So clearly we need to document this place, because even project members don’t know where it is.
Sorry that seems to be a bug. We do need to fix this and document it correctly.
This has been done and will be in the next release!
Most helpful comment
Oh, sorry. I understood. Firstly, I saw
cert: false, I thoughtcertcan only be a boolean value. Now, I found I was wrong. Thanks for your answer.