Hi everyone,
I’m trying to connect my forest backend with the admin panel and I can’t load my data because of an issue with my SSL certificate.
Expected behavior
Get my data in the admin panel
Actual behavior
I can’t get my data because of this error:
I also get errors in my console:
What is the current behavior?
The SSL cert is not valid for this domain.
Context
I added a custom domain to the forest admin interface, but it’s displaying the wrong SSL certificate for the domain when I generated the credentials with let’s encrypt and I can see the certificate is correct in my browser.
I installed the forest admin with npm and added https configuration, this is my server.js file:
I also share my .env configuration:
APPLICATION_PORT=“3310”
APPLICATION_URL=“https://www.admin.erthexchange.com.au:3310”
CORS_ORIGINS=“https://app.forestadmin.com”
DATABASE_URL=“mysql://**”
DATABASE_SSL=“true”
DATABASE_REJECT_UNAUTHORIZED=“false”
FOREST_ENV_SECRET=***
FOREST_AUTH_SECRET=***
NODE_ENV=“dev”
Connection with the DB is correct because I can see my entities but I’m not sure what am I doing wrong because SSL certificates are working in my browser.
My project name is erth_exchange_centos.