Huge snapshots due to inclusion of /config/www directory

I’d like to request an adjustment, but I think it could be resolved in 2 different ways.

The problem
In order to play local media to one of my speakers, the music files have to be in the /config/www folder, so that they become accessible via http://homeassistant.local:8123/local/

Unfortunately now all these music files get included in the snapshot when you have enabled backing up the ‘Home Assistant configuration’. It even leads to my Pi3 crashing as the backup size grows from 6MB to >1GB. I used to have this music in /share that I don’t back up.

I’d like to be able to keep having the HA config to be backed up, without the music files in the backup.

Possible solutions

  1. When backing up the config directory, allow for excluding the /config/www directory, or
  2. Allow another local directory to be shared as the http://homeassistant.local:8123/local/ folder

Use the /media directory then you can exclude that directory completely from your snapshots.