API Client with SSL?

Hey guys, currently I am trying to make the switch from an custom express API to the API plugin. Is there a way to let the plugin consume an ssl cert and open a https server? Greetings
2 Replies
Favna
Favna2y ago
you don't do SSL on the NodeJS level but on the reverse proxy level. Your API should be hosted on a domain anyway which means you'll be using NGINX or Caddy to reverse proxy it to a domain and you can provide SSL at that layer. Providing SSL on the NodeJS layer is extremely cumbersome at best
ShowCast
ShowCastOP2y ago
Yeah I asked because I managed to get a running https server with express to expose the API of my bot on my domain, but then I'll have to figure out how I can use this somehow
Want results from more Discord servers?
Add your server