izderadicka / audioserve

Simple personal server to serve audiofiles files from folders. Intended primarily for audio books, but anything with decent folder structure will do.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unraid Docker Template

git-Contributor opened this issue · comments

Hi,
I wanted to use audioserve on Unraid and as I found in issue and also on reddit I am not alone. Since I was struggling as others, I wanted to share working template so you can include it in repo and help spread this amazing app :)

(Added as zip since XML is not allowed)
audioserve_unraid.zip

There is also possible to add SSL using AUDIOSERVE_SLL_KEY and AUDIOSERVE_SLL_KEY_PASSWORD variables, but I had issue with Lets Encrypt Certificate on official android app, so I am not using SSL currently.

Thanks I'll include in documentation.
Concerning Let's Encrypt certificate - it's interesting as I'm using it with android without any problem. You can check demo site https://audioserve.zderadicka.eu/ which is also using Let's Encrypt (just try to connect there from android app).

I do not know much about Unraid, but just watching the XML I see there just one volume mapping. I'd highly recommend to include there another volume, which will contain audioserve writable data like shard secret, position db, transcoding cache, collections cache (to be there in next version) - in docker it's mapped like this -v /path/for/audioserve-data:/home/audioserve/.audioserve - I think with your configuration it's in transient container file system, so a) it is slow (this will be especially important for future ), b) you loose the data with each container restart.

Yeah, I was not sure if /home/audioserve/.audioserve is needed. I will add it in the template, it will just map this path to /mnt/user/appdata/audioserve. I can also add the SSL, if we can figure it out:

  • When I log in from browser, it is OK, I have lock next to the address and everything seems to be ok (also it is same certificate I am using for jellyfin and there I have no issue):
    image
  • When I try to log in from android (via latest app) I got error in docker log:
    [2021-10-03T19:58:30Z ERROR audioserve::tls] Error when accepting TLS connection error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:ssl/record/rec_layer_s3.c:1543:SSL alert number 46

Any idea why is that happening?

@git-Contributor Do you have updated version of unraid config file?

Attached: audioserve_unraid.zip
I just added mounted /home/audioserve/.audioserve to /mnt/user/appdata/audioserve, which is default folder for docker config/data path. The SSL was not working for me so it is not included in the template, but if anybody will need it, they can easily add it there using your documentation.

Thanks, added to docs/files