Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Nextcloud
#1
Hello all,

I've recently discovered Moode and find it to be an excellent addition to my hifi set up! It is a significant step up from the Chromecast Audio I was using previously. Thanks to the developers for making it available!

In addition to running Moode I'm interested in exploring whether I can host a Nextcloud instance on the same PI. Do any users have experience of trying this? 

As Moode is based on RaspiOS I figure it should be possible to get these services running in parallel, however I note from another thread that several packages are pulled in at specific versions which may cause conflicts. 

Any comments appreciated

Cheers!
Reply
#2
Ok, so before flashing the new 7.0 image I installed Nextcloud on my current sd card. It borked the Moode webui but i can still connect to MPD via Cantata on my laptop, which is nice. Wondering if there is a way to preserve both Moode and Nextclouds web interfaces, but perhaps using an MPD client is the trade off
Reply
#3
(12-19-2020, 12:36 PM)soundchippy Wrote: Ok, so before flashing the new 7.0 image I installed Nextcloud on my current sd card. It borked the Moode webui but i can still connect to MPD via Cantata on my laptop, which is nice. Wondering if there is a way to preserve both Moode and Nextclouds web interfaces, but perhaps using an MPD client is the trade off

Maybe easy, maybe not. It's certainly possible to run multiple http servers on the same device.

Some points in no particular order or significance:


1. The two web interfaces can't be using the same TCP ports on the same host, notably the well-known port 80. One fix is to change the configuration of one or the other and remember how to address the one you change (explicitly as http://moode:xx, say)

2. If Nextcloud also uses the nginx server it may be overwriting the /etc/nginx/nginx.conf file which defines moOde's setup. The fix is to meld the two configurations.

3. For every HTTP server I've worked with, including nginx, it's possible to set up virtual web hosts. You have to play games with DNS on your LAN, but it's possible for the nginx server on your moOde player to serve both http://moode on port 80 and http://nextcloud also on port 80.

ETA

4. I just checked and Nextcloud does use nginx. I forgot to mention that besides nginx virtual hosts (aka server blocks) it should be possible to make Nextcloud a subroot subdir of the webroot, so it would be addressed as http://moode/nextcloud. Truth-in-advertising: I've never tried this but the docs say it is possible.


Regards,
Kent
Reply
#4
(12-19-2020, 12:36 PM)soundchippy Wrote: Ok, so before flashing the new 7.0 image I installed Nextcloud on my current sd card. It borked the Moode webui but i can still connect to MPD via Cantata on my laptop, which is nice. Wondering if there is a way to preserve both Moode and Nextclouds web interfaces, but perhaps using an MPD client is the trade off

Stumbled across this..

You could certainly have both running on the same system, BUT think about the maintenance and upgrade path.  You could upgrade NextCloud alongside moOde, but if you upgrade moOde you will lose your NextCloud install.  The effort of modifying NextCloud, as well as reinstalling it if you ever wanted to upgrade moOde is not worth it.  It will be a annoying and you will end up doing as I suggest or not even upgrading cause it just works now (but for how long). 

Also, moOde isn't the most secure appliance.  You really need to have NextCloud running on something up to date, preferably containerized, and possibly segregated from your home network - NextCloud is meant to be internet facing.

If you have the money, it is worth your time to just get another pi to run NextCloud off of.  Upgrade cycles won't interfere with each other and it will be far more flexible.  That, or get preferably bigger hardware and run NextCloud out of docker or something like that, along with all your other goodies like pihole, your torrent client, NAS, etc.

my thoughts..
Reply
#5
WARNING: moOde is not a secure system and should never be connected to untrusted or public networks !!!
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: