mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-02-03 00:39:39 +00:00
Update: run client from server and proxy requests
This commit is contained in:
parent
31dc10ba51
commit
eecd8be78d
5 changed files with 238 additions and 48 deletions
4
index.js
4
index.js
|
|
@ -12,6 +12,7 @@ if (isDev) {
|
|||
if (devEnv.FFProbePath) process.env.FFPROBE_PATH = devEnv.FFProbePath
|
||||
process.env.SOURCE = 'local'
|
||||
process.env.ROUTER_BASE_PATH = devEnv.RouterBasePath || ''
|
||||
process.env.CLIENT_PORT = devEnv.ClientPort || 8080
|
||||
}
|
||||
|
||||
const PORT = process.env.PORT || 80
|
||||
|
|
@ -22,8 +23,9 @@ const UID = process.env.AUDIOBOOKSHELF_UID
|
|||
const GID = process.env.AUDIOBOOKSHELF_GID
|
||||
const SOURCE = process.env.SOURCE || 'docker'
|
||||
const ROUTER_BASE_PATH = process.env.ROUTER_BASE_PATH || ''
|
||||
const CLIENT_PORT = process.env.CLIENT_PORT || 3000
|
||||
|
||||
console.log('Config', CONFIG_PATH, METADATA_PATH)
|
||||
|
||||
const Server = new server(SOURCE, PORT, HOST, UID, GID, CONFIG_PATH, METADATA_PATH, ROUTER_BASE_PATH)
|
||||
const Server = new server(SOURCE, PORT, HOST, UID, GID, CONFIG_PATH, METADATA_PATH, ROUTER_BASE_PATH, CLIENT_PORT)
|
||||
Server.start()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue