Results 671 to 680 of 889
-
2020-09-07, 08:08 #671
- Join Date
- Feb 2008
- Posts
- 5,126
LMS server: O2 Joggler with Jivelite, Pi Zero W with PcP 6.0
Amp: Denon PMA-50
Players/Speakers: Touch, Logitech Radios, Sonos Play 1s & Beam, Libratone Zipp, GGMM E2 & E3, Yamaha WXAD-010, Loewe Airspeaker, Google Chromecast Audio, Home Mini & Nest Hub, Amazon Echo 2,3 and Show5, Pioneer WX-SMA1, Roberts S1, O2 Joggler, Cisco Joggler, Fiio M6, Avantree Priva BT transmitter
------------------------------------------------------------------------------------
-
2020-09-07, 09:19 #672
- Join Date
- Feb 2015
- Posts
- 23
Paul - your tenacity and determination have been exemplary on this. I just can't help thinking that there must (or should) be an easier solution.
Re-direct on router, proxy configuration over https, with backend user authentication before pass through. I'm not suggesting it's plug-and-play - very little in this space is really - but it seems to me to be a lot easier than jumping through these hoops.
That said, given the very limited usage scenario in focus right now I'm not entirely convinced that a straight redirect to port 9000 would actually be a complete non-starter. How significant a risk would it be really?
Sent from my iPad using Tapatalk
-
2020-09-07, 09:32 #673
- Join Date
- Apr 2005
- Location
- UK/London
- Posts
- 3,588
That is what I do for my own set-up.
I went down that route early on because I didn't want to have to redo the ngrok initialisation each time I (rarely) restarted the server and I didn't want to buy an ngrok service because I was not really sure that I would need it.
So ... I run it over nginx with a letsencrypt cert (I even helped resolve an issue with one of the renewal scripts - https://gist.github.com/Greelan/28a4...omment-3140115 )
However, when Phil came up with the automatic updater mechanism that meant that the ngrok free service could be used without having to re-enter authentication information which makes that route much easier.
I came up with some small changes to the Python script and Phil made some more in the script and back-end and it became even better.
That said, given the very limited usage scenario in focus right now I'm not entirely convinced that a straight redirect to port 9000 would actually be a complete non-starter. How significant a risk would it be really?
https://forums.slimdevices.com/showt...o-the-internetPaul Webster
http://dabdig.blogspot.com
Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland
-
2020-09-07, 10:15 #674
- Join Date
- Apr 2005
- Posts
- 118
I picked PcP because it looked easy - someone has spent a lot of time making something that works really nicely. I didn't want to spend days learning how to use linux. All my previous experience of linux has ended up taking hours or days of my time to do apparently the simplest things due to my ignorance, and I was hoping to avoid that :-)
I'm willing to try installing on full Raspberry linux if that is in fact straightforward to do. I'm sure I can make a backup image of my PcP so far and have another try one day.
-
2020-09-07, 10:21 #675
I'd muse that setting up ngrok without the pCP limitations is a breeze compared to getting certs and DNS names and opening router ports. Plus, an ngrok installation is portable. Take @mecouc who wants to send off a pre-installed pi to his parents. No need to open ports on his parents' router as ngrok will happily tunnel its way outwards from any network. That would not 'just work' with an apache/nginx approach.
-
2020-09-07, 10:24 #676
- Join Date
- Feb 2008
- Posts
- 5,126
LMS server: O2 Joggler with Jivelite, Pi Zero W with PcP 6.0
Amp: Denon PMA-50
Players/Speakers: Touch, Logitech Radios, Sonos Play 1s & Beam, Libratone Zipp, GGMM E2 & E3, Yamaha WXAD-010, Loewe Airspeaker, Google Chromecast Audio, Home Mini & Nest Hub, Amazon Echo 2,3 and Show5, Pioneer WX-SMA1, Roberts S1, O2 Joggler, Cisco Joggler, Fiio M6, Avantree Priva BT transmitter
------------------------------------------------------------------------------------
-
2020-09-07, 10:30 #677
- Join Date
- Apr 2005
- Location
- UK/London
- Posts
- 3,588
I have it /nearly/ working on pCP 6.1.0 ... ngrok starting on boot and updater running ... but updater not quite working (I think because of the pcp startup mechanism). I have asked for some advice on pCP 6 thread.
Paul Webster
http://dabdig.blogspot.com
Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland
-
2020-09-07, 10:56 #678
Paul,
I've written a tiny shell script (in sh, not bash because pCP does not have bash natively) which will update a single tunnel (enough for pCP) and give it the name 'false' (string) which will work fine as default in my back-end. The code is
Code:#!/bin/sh UUID="a84fb223c34002944701a9a70e5e82b65e01cda21b6e8914" URL="`wget -qO- http://localhost:4040/api/tunnels | grep -Po https://.+?\.io`" DATA=[{\"name\":\"false\",\"url\":\"${URL}\"}] RES="`wget -qO- "https://smartskills.tech/linking/updateNgrok.php?uuid=${UUID}&data=${DATA}"`" echo $RES
-
2020-09-07, 11:08 #679
- Join Date
- Apr 2005
- Location
- UK/London
- Posts
- 3,588
Thanks.
Unfortunately, the BusyBox (as used by pCP) version of grep does support -P so the regex part will not work.
However, I do have the Perl updater working - but not when it is run during the startup process.
My suspicion is that it is network related and it is really ngrok that had not finished setting itself up properly so the call to its api does not work properly.
Not resolved by a simple "sleep".
I'm still digging.Paul Webster
http://dabdig.blogspot.com
Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland
-
2020-09-07, 11:16 #680