Moode Forum
[PROBLEM] Listen port changed in nginx.conf - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [PROBLEM] Listen port changed in nginx.conf (/showthread.php?tid=1991)



Listen port changed in nginx.conf - croccodillo - 12-17-2019

Hello all,

I'm Giovanni, from Italy.

I'm a new user of Moode Audio, and I'm trying to make it work on a Raspberri PI 3 B+.
I changed the nginx.conf file, in manner to change the Listen port from 80 to a different one; of course, now I get the "Integrity check failed" error, and cannot access anymor my library nor the Radio stations (cause MPD does not load correctly).
I know that Moode check the nginx.conf crc, and that now my nginx.conf cannot pass the test.
Is there a way to update the crc moode audio does expect for the file, so I can use it modified?
Please help me, I'd really like to have adifferent http port for Moode.
Thank you in advance.

Ciao,
GIovanni

PS: I searched the forum, but found nothing.
If the question has already been answered, I apologize; but, please, address me to the informations, if there is any.


RE: Listen port changed in nginx.conf - croccodillo - 12-17-2019

Ok,

A deeper research in the forum led me to the solution.
Quite easy, I would add.

So, after you modify nginx.conf, you have to instruct Moode Audio to do not raise an error on the modified file, but to only warn us about it.
So, open your ssh terminal (or use the web ssh page) and run the following two commands:

Code:
sudo sqlite3 /var/local/www/db/moode-sqlite3.db "DROP TRIGGER ro_columns"

This will grant you the rights to run the following command:

Code:
sudo sqlite3 /var/local/www/db/moode-sqlite3.db "UPDATE cfg_hash SET ACTION = 'warning' WHERE PARAM = '/etc/nginx/nginx.conf'"

That's it.
From now on you'll receive a simple warning about your modified nginx.conf file, but everything will work flawlessy.

Thanks to the guys that started the following thread, where I found the solution:
http://moodeaudio.org/forum/showthread.php?tid=341

HEllo all!