Issues with Nginx and Domain
-
@Per0x @PitaJ Domain is empty, already bough it and it says "This site is under development". And yes everything worked with localhost:4567
(Now it doesn't work, since I edited nginx configuration, also setup my domain "sampfive.me* in config.json -
@Dan-Reyes can you take a screenshot of the browser when you visit your domain?
-
@Dan-Reyes I would create a sub-domain like forum.sampfive.me
nginx.conf
server_name forum.sampfive.me;
New DNS record, and new SSL certificate.
-
@Per0x How is that possible? I don't have anything as "forum.sampfive.me"
Btw i have 300seconds cooldown.Oh, forum.sampfive.me looks like when i try myip:4567 (this happened after editing nginx)
-
@Per0x When I installed nodebb I used default setting, localhost:4567 etc etc. Cuz I know its possible to change or migrate to a custom domain. And what do you mean about sites-enabled thingy? In the docs there is only one step and it is about sites-available.
Should i try uninstalling nginx and follow any other steps? Like i followed this https://docs.nodebb.org/installing/os/ubuntu/#configuring-nginx and this https://www.howtoforge.com/how-to-install-nodebb-forum-on-ubuntu-1804-lts/ but none of these seems to be working for me, ir maybe I did something wrong i really don't know.
-
@Dan-Reyes said in Issues with Nginx and Domain:
what do you mean about sites-enabled thingy?
my mistake I meant sites-available.
Anyway, when you install nodebb, you have to set your domain name as url (you can change it in config.json).
And you have to make sure your reverse proxy (nginx) is not in conflict with others redirections as it seems. -
I recommend getting nginx and nodebb working with just your IP address.
server_name 1.2.3.4;
then when that working you switch it to use the domain. -
@PitaJ It was working with my IP. I had the warning box "looks like you lost connection to nodebb etc etc.." and I saw how to fix it and one method is by using your domain. Then i did everything in the docs, It didn't worked then i tried howtoforge method and still. After that forum stopped working on IP and you already saw what happend when i try to use the domain. Note that I completely uninstalled NGINX before switching from docs method to howtoforge
-
This post is deleted!
-
Either your password is wrong or mongo isn't running. Try restarting the mongod service.
-
@PitaJ Fixed that, Now im Getting this while executing
./nodebb setup
root@SAMPFIVE:~/nodebb# ./nodebb setup package.json not found. Populating package.json... OK Dependencies outdated or not yet installed. Installing them now... npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. npm WARN deprecated [email protected]: Fixed a critical issue with BSON serialization documented in CVE-2019-2391, see https://bit.ly/2KcpXdo for more details npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t git://github.com/thomaspark/bootswatch.git npm ERR! npm ERR! fatal: failed to stat '/root/nodebb': Permission denied npm ERR! npm ERR! exited with error code: 128 npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2020-06-07T17_22_46_686Z-debug.log Error installing dependencies! message: Command failed: npm install --production stdout: null stderr: null /root/nodebb/src/cli/package-install.js:72 throw e; ^ Error: Command failed: npm install --production at checkExecSyncError (child_process.js:630:11) at Object.execSync (child_process.js:666:15) at Object.installAll (/root/nodebb/src/cli/package-install.js:63:9) at Object.<anonymous> (/root/nodebb/src/cli/index.js:60:18) at Module._compile (internal/modules/cjs/loader.js:1138:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10) at Module.load (internal/modules/cjs/loader.js:986:32) at Function.Module._load (internal/modules/cjs/loader.js:879:14) at Module.require (internal/modules/cjs/loader.js:1026:19) at require (internal/modules/cjs/helpers.js:72:18) { status: 1, signal: null, output: [ null, null, null ], pid: 4032, stdout: null, stderr: null }
-
Done. So you guys want me to put my domain "sampfive.me" in this line right?