commit 5c52e7906a6e0cbe044b8aa7aa33431693642720 Author: RikuSi Date: Wed Sep 20 13:03:14 2023 +0300 Upload files to "/" diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..530a4e0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM ubuntu:latest +RUN apt-get update +RUN apt-get install -y wget nano gnupg +RUN wget -O - http://procyon.ddns.net:8080/propilkki_pub.gpg.key | apt-key add - +RUN echo "deb http://procyon.ddns.net:8080/repos/apt/ubuntu focal main" | tee -a /etc/apt/sources.list +RUN apt-get update +RUN apt-get install pp2host +COPY pp2host.conf /etc/pp2host/pp2host.conf +COPY autoscript.txt /etc/pp2host/static/autoscript.txt +COPY autohost.ini /etc/pp2host/static/autohost.ini +CMD ["sh", "-c", "service pp2host start && tail -f /dev/null"] + diff --git a/autohost.ini b/autohost.ini new file mode 100644 index 0000000..3a48329 --- /dev/null +++ b/autohost.ini @@ -0,0 +1,6 @@ +/players 31 +/autohost on +/lures all +/wait 60 +/autoscript off + diff --git a/autoscript.txt b/autoscript.txt new file mode 100644 index 0000000..d72f8ec --- /dev/null +++ b/autoscript.txt @@ -0,0 +1,10 @@ +/autohost on +/results 10 +/lures all +/wait 30 +/lake Haapolahti,3,3,3 +/game 1,1 +/hello Haapolahti +#go back to start +/autoscript on + diff --git a/pp2host.conf b/pp2host.conf new file mode 100644 index 0000000..d16b989 --- /dev/null +++ b/pp2host.conf @@ -0,0 +1,47 @@ +# ---------------------------------------------------------- +# Pro Pilkki 2 host damon configuration file (pp2host.conf) +# (C) Copyright Procyon Products +# ---------------------------------------------------------- + +# System user account to run the daemon +DAEMON_USER=root + +# Network port +NETWORK_PORT=4500 + +# List game to public hostlist +PUBLIC=yes + +# Show game in public hostlist web page (game must also be public) +PUBLIC_WEB=yes + +# Game hello text, visible on public host list +HELLO="HELLO" + +# Password for accessing the game +GAME_PASSWORD="" + +# Password for controlling the game via web browser or in-game chat +ADMIN_PASSWORD="password" + +# Password for controlling the game as a host via web browser +HOST_PASSWORD="password" + +# Host player name +PLAYER_NAME="Fisherman" + +# Host nationality +PLAYER_NATION="FIN" + +# Network records account e-mail (trusted host) +REC_MAIL="" + +# Network records password (trusted host) +REC_PASSWORD="password" + +# Minumum client version allowed to enter game +MIN_CLIENT_VER="" + +# Maximum client version allowed to enter game +MAX_CLIENT_VER="" +