20018 pls

master
Bel LaPointe 2018-10-06 16:22:12 -06:00
parent 63dddda80d
commit f13b8bcd47
4 changed files with 5 additions and 5 deletions

View File

@ -12,6 +12,6 @@ COPY gen_caddyfile_and_start.sh /bin/
VOLUME /root/.caddy
EXPOSE 2018
EXPOSE 20018
ENTRYPOINT /bin/gen_caddyfile_and_start.sh

View File

@ -5,7 +5,7 @@ set -e
docker build -t caddsies .
docker run --rm -it \
-p 2018:2018 \
-p 20018:20018 \
-v $(pwd)/mnt:/mnt \
-e CADDYFILE=/mnt/caddyfile \
-e STUNFILE=/mnt/stunfile \

View File

@ -10,5 +10,5 @@ key=/etc/stunserver.key
CAfile=/etc/stunclient.crt
[default]
accept=2018
accept=20018
connect=2015

View File

@ -1,11 +1,11 @@
#! /bin/bash
addr="${1:-${addr:-"192.168.0.86:8080/vpntor"}}"
pport="${2:-${pport:-2018}}"
pport="${2:-${pport:-20018}}"
proxycacert="--proxy-cacert ./mnt/stunserver.crt"
if ((pport==2018)); then
if ((pport==20018)); then
prox="${3:-${prox:-https://localhost}}"
else
prox="${3:-${prox:-http://localhost}}"