Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
docker: allow socketPath from environment (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoelker authored and jfurrow committed Sep 21, 2019
1 parent 4964e30 commit acb637f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion config.docker.js
Expand Up @@ -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',
Expand Down

0 comments on commit acb637f

Please sign in to comment.