Where in hassbian can i store files that are accessible from the web?

Since hassbian is accessible from the web, I recon there is a webserver in there somewhere. I need to store some static audio files that I would like to play. I tried storing them in /config/www/ and chmod -R 755 /config/ but I get a 404 when I try visiting

myip:8123/local/1.pdf

create a folder called www in your install. copy your PDF in there, and you’ll be able to access it from myip:8123/local/1.pdf
For your audio file, check the bitrate. I had an issue with a file that had very low bitrate (32kbps). After changing it to 192kbps it worked

sweet, what is “install” is it /homeassistant/.homeassistant/ for example?

wherever your config is saved

just tried that, did not work, do you know what permissions/owner are needed for the file and folder?

the file:
-rwxr-xr-x 1 pi pi 1012777 May 11 09:58 1.pdf

the folder:
drwxr-xr-x 2 root root 4096 May 11 10:11 www

Restarted HA since creating the www folder?

1 Like

There we go!