docker: allow socketPath from environment (#832)

This commit is contained in:
Jason Kölker
2019-09-21 06:06:24 +00:00
committed by John Furrow
parent 4964e30107
commit acb637fe33
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -83,6 +83,6 @@ I've been bad about cutting actual releases, so check this repo for recent commi
* `FLOOD_SECRET`
* `FLOOD_ENABLE_SSL`
The docker container includes a volume at `/data`, which is where the database will be located. Additionally, you can place your SSL files there, `/data/flood_ssl.key` and `/data/flood_ssl.cert`. Set `FLOOD_ENABLE_SSL` to `true` to enable their use if present. Additionally, a local rtorrent socket file located at `/data/rtorrent.sock` can be used if `RTORRENT_SOCK` is set to `true`.
The docker container includes a volume at `/data`, which is where the database will be located. Additionally, you can place your SSL files there, `/data/flood_ssl.key` and `/data/flood_ssl.cert`. Set `FLOOD_ENABLE_SSL` to `true` to enable their use if present. Additionally, a local rtorrent socket file located at `/data/rtorrent.sock` can be used if `RTORRENT_SOCK` is set to `true`. The location of the socket file can be overrided by setting `RTORRENT_SOCK_PATH` to the path of the socket.
Check out the [Wiki](https://github.com/Flood-UI/flood/wiki/Docker) for more information.
+1 -1
View File
@@ -10,7 +10,7 @@ const CONFIG = {
host: process.env.RTORRENT_SCGI_HOST || 'localhost',
port: process.env.RTORRENT_SCGI_PORT || 5000,
socket: process.env.RTORRENT_SOCK === 'true' || process.env.RTORRENT_SOCK === true,
socketPath: '/data/rtorrent.sock',
socketPath: process.env.RTORRENT_SOCK_PATH || '/data/rtorrent.sock',
},
ssl: process.env.FLOOD_ENABLE_SSL === 'true' || process.env.FLOOD_ENABLE_SSL === true,
sslKey: '/data/flood_ssl.key',