Search code examples
nginxdigital-oceanstrapi

How to redirect Strapi admin panel. (DigitalOcean Strapi)


I have installed DigitalOcean Strapi and the ip/admin used to open admin panel. But after I set up a domain and protect it by SSL. All the endpoints are working under https but admin panel still is serving under http and blocked due to mixed content. Can someone help me how to change strapi's conf ?

enter image description here


Solution

  • You need to update the url key in the ./config/server.js and rebuild the admin for that change to take effect. The admin panel is not rebuild dynamically and a manual build has to be triggered. The url key in that config files tells the admin how to contact the Strapi backend.