From acb637fe339039bc7f1ac9016bfa684eb3354eed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jason=20K=C3=B6lker?= Date: Sat, 21 Sep 2019 06:06:24 +0000 Subject: [PATCH] docker: allow `socketPath` from environment (#832) --- README.md | 2 +- config.docker.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1d88d9e02..c1b04e17b 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/config.docker.js b/config.docker.js index 1c63111e5..6968621d4 100644 --- a/config.docker.js +++ b/config.docker.js @@ -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',