Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Fix flood secret: Set at least 30 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Coosos committed Nov 22, 2020
1 parent 43118ef commit a6ad2aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARG FLOOD_VER=4.1.2
ARG BUILD_CORES

ENV UID=991 GID=991 \
FLOOD_SECRET=supersecret \
FLOOD_SECRET=supersecret30charactersminimum \
WEBROOT=/ \
DISABLE_AUTH=false \
RTORRENT_SOCK=true \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#### Environment variables
- **UID** : user id (default : 991)
- **GID** : group id (defaut : 991)
- **FLOOD_SECRET** : flood secret key (defaut : mysupersecretkey) (CHANGE IT)
- **FLOOD_SECRET** : flood secret key (defaut : supersecret30charactersminimum) (CHANGE IT)
- **WEBROOT** : context path (base_URI) (default : /)
- **RTORRENT_SOCK** : true or false (default : true, if false rtorrent listens on 0.0.0.0:5000)
- **PKG_CONFIG_PATH** : `/usr/local/lib/pkgconfig` (don't touch)
Expand Down
2 changes: 1 addition & 1 deletion rootfs/usr/flood/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const CONFIG = {
maxHistoryStates: 30,
torrentClientPollInterval: 1000 * 5,
torrentClientPollIntervalIdle: 1000 * 60 * 15,
secret: process.env.FLOOD_SECRET || 'secret',
secret: process.env.FLOOD_SECRET || 'supersecret30charactersminimum',
configUser: connectionSettings
};

Expand Down

0 comments on commit a6ad2aa

Please sign in to comment.