Skip to content

Commit

Permalink
Set remote access via command line option (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
iercan authored Sep 1, 2024
1 parent 053548d commit b293a44
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 40 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
python3.10 ca-certificates wget sudo \
curl supervisor jq \
&& rm -rf /var/lib/apt/lists/* \
#
# Download acestream
Expand All @@ -31,12 +30,14 @@ RUN apt-get update \
&& bash ./install_dependencies.sh \
&& popd || exit

COPY supervisor.conf /etc/supervisor/conf.d/
COPY api-configuration.sh /
ENV ALLOW_REMOTE_ACCESS="no"
ENV HTTP_PORT=6878
ENV EXTRA_FLAGS=''

ENTRYPOINT ["/usr/bin/supervisord"]
CMD ["-n", "-c", "/etc/supervisor/supervisord.conf"]
COPY run.sh /

ENTRYPOINT ["/usr/bin/bash"]
CMD ["/run.sh"]

EXPOSE 6878/tcp

13 changes: 0 additions & 13 deletions api-configuration.sh

This file was deleted.

2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ services:
- '6878:6878'
environment:
- ALLOW_REMOTE_ACCESS=no # change to "yes" to allow internet access
# add any extra command line option mentioned in https://docs.acestream.net/developers/engine-command-line-options/
- EXTRA_FLAGS=''
7 changes: 7 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if [[ $ALLOW_REMOTE_ACCESS == "yes" ]];then
EXTRA_FLAGS="$EXTRA_FLAGS --bind-all"
fi

/opt/acestream/start-engine --client-console --http-port $HTTP_PORT $EXTRA_FLAGS


22 changes: 0 additions & 22 deletions supervisor.conf

This file was deleted.

0 comments on commit b293a44

Please sign in to comment.