All Projects → doughsay → ambry

doughsay / ambry

Licence: MIT license
Self-hosted audiobook streaming server

Programming Languages

elixir
2628 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ambry

google scraper live view
Application for extracting large amounts of data from the Google search results page
Stars: ✭ 17 (-55.26%)
Mutual labels:  phoenix, liveview
mfpb
My Frugal PostBin
Stars: ✭ 26 (-31.58%)
Mutual labels:  phoenix, liveview
shlinked
An open-source satirical social network. shlinkedin.com
Stars: ✭ 287 (+655.26%)
Mutual labels:  phoenix, liveview
audiobookshelf
Self-hosted audiobook and podcast server
Stars: ✭ 1,316 (+3363.16%)
Mutual labels:  self-hosted, audiobooks
livebook
Automate code & data workflows with interactive Elixir notebooks
Stars: ✭ 3,402 (+8852.63%)
Mutual labels:  phoenix, liveview
kandesk
Simple Kanban application written in elixir using phoenix liveview
Stars: ✭ 157 (+313.16%)
Mutual labels:  phoenix, liveview
uncharted
No description or website provided.
Stars: ✭ 31 (-18.42%)
Mutual labels:  phoenix, liveview
Phoenix live dashboard
Realtime dashboard with metrics, request logging, plus storage, OS and VM insights
Stars: ✭ 1,657 (+4260.53%)
Mutual labels:  phoenix, liveview
king of tokyo
👑 King of Tokyo Multiplayer Board Game using Phoenix LiveView
Stars: ✭ 25 (-34.21%)
Mutual labels:  phoenix, liveview
ecto nested changeset
Helpers for manipulating nested Ecto changesets
Stars: ✭ 23 (-39.47%)
Mutual labels:  phoenix, liveview
phoenix live controller
Controller-style abstraction for building multi-action live views on top of Phoenix.LiveView
Stars: ✭ 31 (-18.42%)
Mutual labels:  phoenix, liveview
Ex money
A [work-in-progress] self-hosted personal finance app
Stars: ✭ 154 (+305.26%)
Mutual labels:  phoenix, self-hosted
Conduit
RealWorld example backend implementing the CQRS/ES pattern in Elixir and Phoenix
Stars: ✭ 253 (+565.79%)
Mutual labels:  phoenix
unpaprd
An audiobook 🎧 📔 app made using Flutter
Stars: ✭ 73 (+92.11%)
Mutual labels:  audiobooks
Exchat
(Not maintaining) A Slack-like app by Elixir, Phoenix & React(redux)
Stars: ✭ 252 (+563.16%)
Mutual labels:  phoenix
Params
Easy parameters validation/casting with Ecto.Schema, akin to Rails' strong parameters.
Stars: ✭ 239 (+528.95%)
Mutual labels:  phoenix
Proxmox
Proxmox Helper Scripts
Stars: ✭ 3,882 (+10115.79%)
Mutual labels:  self-hosted
keeper
Flexible and Simple authentication solution for Phoenix
Stars: ✭ 27 (-28.95%)
Mutual labels:  phoenix
Pow assent
Multi-provider authentication for your Pow enabled app
Stars: ✭ 236 (+521.05%)
Mutual labels:  phoenix
Heroku Buildpack Phoenix Static
A Heroku buildpack for building Phoenix's static assets
Stars: ✭ 225 (+492.11%)
Mutual labels:  phoenix

Intro

Ambry is your personal audiobook shelf. Upload your books to a self hosted server and stream to any device over the web.

Running the server

NOTE: This README reflects the main branch of this project and is not necessarily accurate to the latest stable release.

The easiest way to get up and running quickly is to use the container image which is hosted on the GitHub container registry: https://github.com/doughsay/ambry/pkgs/container/ambry

The only external requirement is a PostgreSQL database.

Compose example

Here is an example Docker Compose file that could be used to run Ambry and the required PostgreSQL database:

---
version: "3"
services:
  postgres:
    image: postgres:alpine
    container_name: postgres
    environment:
      - POSTGRES_HOST_AUTH_METHOD=trust
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: unless-stopped

  ambry:
    image: ghcr.io/ambry-app/ambry:latest
    container_name: ambry
    environment:
      - DATABASE_URL=postgres://postgres:postgres@postgres/postgres
      - SECRET_KEY_BASE=FpmsgoGanxtwT6/M9/LbP2vFQP70dVqz2G/lC23lzOo2cmGkl82lW18Q01Av3RGV
      - BASE_URL=http://localhost:9000
      - PORT=9000
    ports:
      - 9000:9000
    volumes:
      - uploads:/app/uploads
    restart: unless-stopped

volumes:
  pgdata:
  uploads:

WARNING: The secret key above is only an example, do not use a publicly available key!

Configuration

The following environment variables are used for configuration:

Variable Description Default Required?
BASE_URL The url at which you will be serving Ambry. e.g. https://ambry.mydomain.com N/A Yes
DATABASE_URL A postgresql URL. e.g. postgresql://username:password@host/database_name N/A Yes
SECRET_KEY_BASE A secret key string of at least 64 bytes, used for signing secrets like session cookies. N/A Yes
PORT The port you wish the server to listen on. 80 No
POOL_SIZE The number of postgresql database connections to open. 10 No
USER_REGISTRATION_ENABLED Whether or not users are allowed to register themselves with the server. no No
MAIL_PROVIDER Valid values: mailjet not-set No
MAIL_FROM_ADDRESS The email address that transactional emails are sent from noreply@<HOST> No

Based on which mail provider you choose, you will need to supply provider specific configuration:

Mailjet

Variable Description
MAILJET_API_KEY The API key provided to you by Mailjet
MAILJET_SECRET The API secret provided to you by Mailjet

The mail provider is only used for sending registration emails and forgotten password emails. If you don't need or want this functionality, you can just leave the MAIL_PROVIDER variable unset.

Setting up a fully working email provider requires a domain name that you control that you can configure correctly with your chosen provider. Currently the only provider that's working with Ambry is Mailjet, but if there's interest in others, they can be very easily added.

First time setup

The first time Ambry is booted up, it will walk you through setting up your initial admin user account. Just visit the URL at which you're hosting Ambry to get started:

  • http(s)://your-ambry-domain/

Once that's done, the server will restart and you can log into your new account and get started using Ambry!

Local development

Ambry is a Phoenix LiveView application, so to run the server on your machine for local development follow standard steps for phoenix applications. To be able to transcode audio files, you'll also need ffmpeg and shaka-packager available in your path.

Requirements

For Elixir/Erlang/Nodejs you can easily install all the right versions using asdf by running asdf install from within the root directory. The versions are defined in .tool-versions.

# download hex dependencies
mix deps.get

# download javascript dependencies
( cd assets && yarn )

# create and migrate the database
mix ecto.setup

# run the server
iex -S mix phx.server

Seeds & example files

To add some example books and media to your local database, you can run:

mix seed

This will populate the database with some example books & media, and download & extract the example books & media files into your local uploads/ folder.

NOTE: The example files omit the source files for a smaller download-size, so visiting the admin audit page (http://localhost:4000/admin/audit) will show them all as missing their sources.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].