minidlna: Do not expose statistics over public web

Tested that after this change, only admins can see the MiniDLNA
statistics page https://<freedombox>/_minidlna/ over the web.

Everybody can still see the page on local network using
an address http://<freedombox>:8200/

MiniDLNA web page shows how many media files are served and
some information (IP, MAC address) about the connected clients.

Signed-off-by: Veiko Aasa <veiko17@disroot.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Veiko Aasa 2020-07-09 20:06:02 +03:00 committed by James Valleroy
parent b1f2c6e446
commit b9fe3fb491
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -1,3 +1,9 @@
<Location /_minidlna/>
Include includes/freedombox-single-sign-on.conf
<IfModule mod_auth_pubtkt.c>
TKTAuthToken "admin"
</IfModule>
ProxyPass http://localhost:8200/
</Location>