mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 04:19:18 +00:00
rtorrent-flood: add CONTEXT_PATH
This commit is contained in:
parent
84183c01b6
commit
01251821b5
@ -8,6 +8,7 @@ ARG BUILD_CORES
|
|||||||
|
|
||||||
ENV UID=991 GID=991 \
|
ENV UID=991 GID=991 \
|
||||||
FLOOD_SECRET=supersecret \
|
FLOOD_SECRET=supersecret \
|
||||||
|
CONTEXT_PATH=/ \
|
||||||
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
|
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
|
||||||
|
|
||||||
RUN NB_CORES=${BUILD_CORES-`getconf _NPROCESSORS_CONF`} \
|
RUN NB_CORES=${BUILD_CORES-`getconf _NPROCESSORS_CONF`} \
|
||||||
|
@ -17,9 +17,10 @@
|
|||||||
- **BUILD_CORES** : number of cores used during build
|
- **BUILD_CORES** : number of cores used during build
|
||||||
|
|
||||||
#### Environment variables
|
#### Environment variables
|
||||||
- **UID** : user id
|
- **UID** : user id (default : 991)
|
||||||
- **GID** : group id
|
- **GID** : group id (defaut : 991)
|
||||||
- **FLOOD_SECRET** : flood secret key
|
- **FLOOD_SECRET** : flood secret key (defaut : mysupersecretkey) (CHANGE IT)
|
||||||
|
- **CONTEXT_PATH** : context path (base_URI) (default : /)
|
||||||
- **PKG_CONFIG_PATH** : `/usr/local/lib/pkgconfig` (don't touch)
|
- **PKG_CONFIG_PATH** : `/usr/local/lib/pkgconfig` (don't touch)
|
||||||
|
|
||||||
#### Ports
|
#### Ports
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
const CONFIG = {
|
const CONFIG = {
|
||||||
|
baseURI: '<CONTEXT_PATH>',
|
||||||
dbCleanInterval: 1000 * 60 * 60,
|
dbCleanInterval: 1000 * 60 * 60,
|
||||||
dbPath: '/flood-db/',
|
dbPath: '/flood-db/',
|
||||||
floodServerPort: 3000,
|
floodServerPort: 3000,
|
||||||
|
@ -9,6 +9,8 @@ mkdir -p /data/Media/Animes
|
|||||||
mkdir -p /data/Media/Music
|
mkdir -p /data/Media/Music
|
||||||
|
|
||||||
sed -i -e "s/<FLOOD_SECRET>/$FLOOD_SECRET/g" /usr/flood/config.js
|
sed -i -e "s/<FLOOD_SECRET>/$FLOOD_SECRET/g" /usr/flood/config.js
|
||||||
|
sed -i -e "s/<CONTEXT_PATH>/$CONTEXT_PATH/g" /usr/flood/config.js
|
||||||
|
|
||||||
rm -f /data/.session/rtorrent.lock
|
rm -f /data/.session/rtorrent.lock
|
||||||
mv /usr/flood /usr/fix && mv /usr/fix /usr/flood # fix strange bug
|
mv /usr/flood /usr/fix && mv /usr/fix /usr/flood # fix strange bug
|
||||||
chown -R $UID:$GID /data /home/torrent /tmp /filebot /usr/flood /flood-db /etc/s6.d
|
chown -R $UID:$GID /data /home/torrent /tmp /filebot /usr/flood /flood-db /etc/s6.d
|
||||||
|
Loading…
x
Reference in New Issue
Block a user