Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Installing on Unraid

Jono Cairns edited this page Mar 27, 2020 · 5 revisions

Requirements:

  1. Postgres

  2. Auth0

    • Sign up for an account if you don't have one already
    • Navigate to the dashboard and select 'Applications' on the left side nav.
    • Select 'create application'
    • Choose 'Single page web application' and give it a name like 'Aubri'
    • Once created, select the 'settings' tab for the freshly created application.
    • Copy the Client ID and Domain, we'll use those shortly.
    • On the side nav, select 'APIs', then select 'Create API'
    • Give it a name like aubri API and set the identifier to be something like https://aubri.yourdomain.com
  3. Manually add jonocairns/aubri:latest docker image

    • Map a container path to /host/machine/audiobooks -> /usr/src/app/data
    • Set container variable DATABASE_URL to the postgres connection string e.g. postgres://user:[email protected]/aubri
    • Set container PORT to 6969
    • Set variable REACT_APP_AUTH0_DOMAIN to your auth0 domain e.g. appname.auth0.com (this can be appname.au.auth0.com depending on location)
    • Set variable REACT_APP_AUTH0_CLIENT_ID to the one you wrote down in step 2

optional: set the ircon URL: https://raw.githubusercontent.com/jonocairns/aubri/master/client/public/logo512.png optional: set the WebUI: http://[IP]:[PORT:6969]/

Ensure you have audiobooks in the folder you're passing to the container as it will scan the folder on boot.

Exposing the application to the internet with nginx

server {
	listen 80;
	server_name aubri.yourdomain.co.nz;
	return 301 https://$server_name$request_uri;
	}

# Aubri Server
server {
	listen 443 ssl http2;
	server_name aubri.yourdomain.co.nz;
	error_log /config/log/nginx/aubri.yourdomain.error.log debug;
	#SSL settings
	include /config/nginx/strong-ssl.conf;
	
	location / {
		proxy_pass http://192.168.1.75:6969;
      		proxy_bind $server_addr;
      		proxy_set_header X-Forwarded-Host $server_name;
		proxy_set_header X-Forwarded-Ssl     on;
     	}
   }
Clone this wiki locally