Hi,
I have another situation where I have different config.json confusing me now.
$ cat config.json
{
"url": "https://oldname1.com",
"secret": "xxxxxxxx",
"database": "mongo",
"mongo": {
"host": "127.0.0.1",
"port": 27017,
"username": "",
"password": "",
"database": "nodebb",
"uri": "mongodb://nodebb4556:xxxxxx@localhost:27017/nodebb"
}
And...
$ cat ../nodebb/config.json
{
"url": "http://localhost:4567",
"secret": "xxxxxxxx",
"database": "postgres",
"postgres": {
"host": "127.0.0.1",
"port": "5432",
"username": "nodebbgttt56",
"password": "xxxxx",
"database": "nodebb",
"ssl": "false"
},
"port": "4567"
Both were used, the second is the current one. Both worked but which one is right?
The new version is using postgres. Based on your comment, it should be like this;
{
"url": "https://www.domainname:4567", << nginx proxy port
"secret": "xxxxxxxx",
"database": "postgres",
"postgres": {
"host": "127.0.0.1",
"port": "5432",
"username": "nodebbgttt56",
"password": "xxxxx",
"database": "nodebb",
"ssl": "false"
},
"port": "4567"
Am I going wrong somewhere even if this works?