Domain name change
-
I don't think anything needs to be changed besides the URL in config.json
-
Pretty much what @PitaJ said, yes. Just update your DNS records so the new domain points to your NodeBB's IP (or reverse proxy), and update
config.json
with the new domain.Everything uses relative links, and
url
inconfig.json
is only ever used in situations where we don't have any context as to what URL to use, such as email digests. -
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?
Copyright © 2025 NodeBB | Contributors