Page 1 of 1

password protection

PostPosted: 04 Feb 2017, 18:33
by nihil.baxter
Hello everybody.

Been reading the forum for a while now, now i gotta ask a question.

I hope this is the right place for it. I looked around here and with google and to my surprise found nobody asked for it before.

I very much enjoy the runeaudio distribution on my rpi3 with my hifiberry dax+, pretty impressed about how easy it is to setup.
But what flaws it a bit for me is the lack of security options.
Why isn't it possible to password protect the remote connection? Everybody in the same network can access my runeaudio and mess around with it, which isn't practical at all in my setup and living situation. Did i miss something? Is there a possibility? The mpd has the feature afaik, but not runeaudio?
Another thing is the airplay function which i would like to use, but the problem here is the same as above, i dont want everybody in the house to be able to hitchike my audio by just turning into airplay.
So, if there are possibilities to do it, please, somebody let me know, otherwise this is a feature request :-)

Re: password protection

PostPosted: 05 Feb 2017, 01:23
by hondagx35

Re: password protection

PostPosted: 05 Feb 2017, 14:01
by nihil.baxter
Ok, thanks alot for the quick and precise help.

I followed the instructions, seems to work somehow, but now i can't access the runeui at all.
There is no login window popping up, just the browser saying that it cannot connect to that specific ip.
I just saw that nginx brings up an error message "nginx: [emerg] unknown directive "auth_basic" in /etc/nginx/nginx.conf:43"
Any idea? I double checked the lines being written exactly as mentioned and being at the right position...

(I'd also like to set the password in mpd, is there a way tu put the needed line in /etc/mpd.conf so that it stays there?)
->It worked to just add the line, just hadn't thought about that runeui can't be used then anymore :-) and a bit sad that i cant use the mpd configuration part of runeui anymore.
But since i prefer those mpd clients, i'll do it that way.
Why isnt the mpd password function implemented in runeui? Seems like a nobrainer to me, since its seems like an easy thing to do.
Again, a feature request, so that the thread is still in the right subforum :-)

The question about the webserver not being reachable with the .htaccess active, is still of interest.

Re: password protection

PostPosted: 05 Feb 2017, 17:28
by hondagx35

Re: password protection

PostPosted: 05 Feb 2017, 19:41
by nihil.baxter

Re: password protection

PostPosted: 05 Feb 2017, 23:18
by hondagx35
Hi,

please try this file:
nginx.zip
(1.58 KiB) Downloaded 599 times


Frrank

Re: password protection

PostPosted: 06 Feb 2017, 23:28
by nihil.baxter
Hi,
thanks again for your efforts, but it still doesent work out, behaves the same way as before. Since i havent got the time right now (and honestly: nerves :-) i am useing that modification posted in the raspberry subforum as it just works right now. But since your suggestion seems like a nice and elegant way i still find it a bit sad that i couldnt make it out. Well at least i learned a very little bit about nginx webserver :-)

Re: password protection

PostPosted: 24 Apr 2018, 06:05
by handicop