I initially managed to run my Strapi version 3 app successfully before I added a DNS via my Vultr server instance. Now whenever I try to run
npm run develop
The app seems to be working fine from the terminal, but when I go to my domain it says:
"This site can’t be reached" and the error that appears is
ERR_CONNECTION_REFUSED
below is my server.js
module.exports = ({ env }) => ({
host: env('HOST', 'example.com'),
port: env.int('PORT', 1337),
admin: {
auth: {
secret: env('ADMIN_JWT_SECRET', '********'),
},
},
});
below is my database.js
module.exports = ({ env }) => ({
defaultConnection: 'default',
connections: {
default: {
connector: 'bookshelf',
settings: {
client: 'mysql',
host: env('DATABASE_HOST', 'a-long-host-name-example'),
port: env.int('DATABASE_PORT', 1889), // this is a fake port
database: env('DATABASE_NAME', 'db_name'),
username: env('DATABASE_USERNAME', 'admin'),
password: env('DATABASE_PASSWORD', '************'), // not the real password
ssl: env.bool('DATABASE_SSL', false),
},
options: {}
},
},
});
is there something wrong with my strapi configuration?
in addition, here is my firewall info that I got from
ufw status
Could anyone know why I am getting the ERR_CONNECTION_REFUSED error?