Automatic HTTPS certificates for Node.js applications using Let’s Encrypt
Let’s Encrypt is used by MagicServer by default, so you don’t have to do anything to enable it.
However, if you wish it to be explicit about which certificate authority is being used, you may manually specify when calling createMagicServer.
Copy
Ask AI
import { letsencrypt } from "@magicserver/magicserver/authorities"const server = createMagicServer("your-domain.com", app, { authority: letsencrypt})