Skip to content

Commit 850dac0

Browse files
committed
Added black- and whitelisting.
1 parent 8363229 commit 850dac0

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ RUN apk add --no-cache \
2727
&& apk del gcc g++ make git cvs zlib-dev \
2828
&& rm -rf /var/cache/apk/* /tmp/*
2929

30-
COPY ./opentracker.conf /etc/opentracker.conf
30+
COPY ./opentracker.conf /etc/opentracker/opentracker.conf
31+
COPY ./whitelist.txt /etc/opentracker/whitelist.txt
32+
COPY ./blacklist.txt /etc/opentracker/blacklist.conf
3133

3234
EXPOSE 6969
3335

34-
CMD opentracker -f /etc/opentracker.conf
36+
CMD opentracker -f /etc/opentracker/opentracker.conf

blacklist.txt

Whitespace-only changes.

opentracker.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
# II) If opentracker runs in a non-open mode, point it to files containing
3535
# all torrent hashes that it will serve (shell option -w)
3636
#
37-
# access.whitelist /path/to/whitelist
37+
# access.whitelist /etc/opentracker/whitelist.txt
3838
#
3939
# or, if opentracker was compiled to allow blacklisting (shell option -b)
4040
#
41-
# access.blacklist ./blacklist
41+
# access.blacklist /etc/opentracker/blacklist.txt
4242
#
4343
# It is pointless and hence not possible to compile black AND white
4444
# listing, so choose one of those options at compile time. File format

whitelist.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)