Skip to content

Commit 2560ae8

Browse files
authored
Merge pull request #3 from ultimate-pms/master
Add environment variable for LB_URL so that it does not need to be manually configured
2 parents c03f626 + a1f8f61 commit 2560ae8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ This software is a part of __UnicornTranscoder__ project, it's a binary to repla
1414
## Installation
1515
* Clone this repository
1616
* Run `npm i`
17-
* Set your load-balancer url in `config.js`
17+
* Set your load-balancer url in `config.js` (Note you can also set this as an environment variable called `LB_URL`, otherwise it will default to: `http://127.0.0.1:3001/'`)
1818
* Build the binary with `npm start`
19-
* Replace the Plex binary called `Plex Transcoder` by the generated binary store in `bin`, choose the correct version (depending on your OS)
19+
* Replace the Plex binary called `Plex Transcoder` by the generated binary store in `bin`, choose the correct version (depending on your OS)

config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// URL of the load-balancer with last '/'
22
module.exports = {
3-
URL: 'http://127.0.0.1:3001/'
3+
URL: process.env.LB_URL || 'http://127.0.0.1:3001/'
44
};

0 commit comments

Comments
 (0)