This repository has been archived by the owner on Dec 5, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Installing on Unraid
Jono Cairns edited this page Mar 27, 2020
·
5 revisions
Requirements:
-
Postgres
- Add the postgres docker image
-
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
andDomain
, 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
-
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
- Map a container path to
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.
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;
}
}