Run code-server with the beta flag --link and you'll get TLS, authentication, and a dedicated URL for accessing your IDE out of the box.
--link
$ code-server --link Proxying code-server, you can access your IDE at https://example.cdr.co