Uberspace / lab

The Uberlab provides various tutorials - written by you! - on how to run software and tools on Uberspace 7.
https://lab.uberspace.de
Other
315 stars 414 forks source link

[audiobookshelf] add guide #1752

Open knhash opened 5 months ago

knhash commented 5 months ago

I have been able to get audiobookshelf up and running in my instance. It is a "Self-hosted audiobook and podcast server"

The following are the commands for anyone else to quickly follow along.

I will be writing a guide for this in the coming week.

Note: the sqlite3 rebuild is a necessary step due to an issue, also referenced here: https://github.com/thelounge/thelounge/issues/4855

Instructions:


mkdir audiobookshelf

cd audiobookshelf

wget -O ~/audiobookshelf/docker-image-extract https://raw.githubusercontent.com/jjlin/docker-image-extract/main/docker-image-extract

chmod +x docker-image-extract

./docker-image-extract advplyr/audiobookshelf

mv output audiobookshelf

cd audiobookshelf

mkdir metadata

mkdir config

export NODE_ENV='production'

export CONFIG_PATH='/home/knhash/audiobookshelf/audiobookshelf/config'

export METADATA_PATH='/home/knhash/audiobookshelf/audiobookshelf/metadata'

export PORT=13378

npm install

cd node_modules/sqlite3

npm rebuild sqlite3 --build-from-source

cd ../..

npm start

uberspace web domain add `your.domain`

uberspace web backend set `your.domain` --http --port 13378

vi ~/etc/services.d/audiobookshelf.ini

---

[program:audiobookshelf]
environment=
  NODE_ENV="production",
  CONFIG_PATH="%(ENV_HOME)s/audiobookshelf/audiobookshelf/config",
  METADATA_PATH="%(ENV_HOME)s/audiobookshelf/audiobookshelf/metadata",
  PORT=13378
directory=%(ENV_HOME)s/audiobookshelf/audiobookshelf
command=npm run start
autostart=yes
autorestart=yes
startsecs=30

---

supervisorctl reread

supervisorctl update

supervisorctl status