Hello, recently I read how to use HTTPS for Local Development for React, Angular, and Node.
The tutorial uses mkcert and is able to setup HTTPS for Node as well. However, I am confused to apply that in Strapi as I do not know which file acts as “index.js” or “server.js” in Strapi. Any ideas will be appreciated, thanks!
Short answer is you don’t within Strapi itself, you would need to use a proxy application like Caddy, HAProxy, or nginx locally. We have various sample configs on our documentation:
We don’t support native SSL on Strapi itself due to how node functions, when a production cert has to be renewed, a new cert is issued which would require Strapi to restart to load it.