Expose phoenix and Wireguard ports specified in configuration (#1372)

This commit is contained in:
Andrew Dryga
2023-02-01 18:23:46 -06:00
committed by GitHub
parent aa7a43dc70
commit 8033d618c1
4 changed files with 11 additions and 9 deletions

View File

@@ -35,19 +35,17 @@ services:
https:// {
log
reverse_proxy * firezone:13000
tls internal {
on_demand
}
reverse_proxy * 172.25.0.100:${PHOENIX_PORT:-13000}
${TLS_OPTS:-}
}
EOF
deploy:
<<: *default-deploy
firezone:
image: firezone/firezone
image: firezone/firezone:${VERSION:-latest}
ports:
- 51820:51820/udp
- ${WIREGUARD_PORT:-51820}:${WIREGUARD_PORT:-51820}/udp
env_file:
# This should contain a list of env vars for configuring Firezone.
# See https://docs.firezone.dev/reference/env-vars for more info.

View File

@@ -31,7 +31,7 @@ services:
https:// {
log
reverse_proxy * 172.25.0.100:13000
reverse_proxy * 172.25.0.100:${PHOENIX_PORT:-13000}
${TLS_OPTS:-}
}
EOF
@@ -40,9 +40,9 @@ services:
<<: *default-deploy
firezone:
image: firezone/firezone
image: firezone/firezone:${VERSION:-latest}
ports:
- 51820:51820/udp
- ${WIREGUARD_PORT:-51820}:${WIREGUARD_PORT:-51820}/udp
env_file:
# This should contain a list of env vars for configuring Firezone.
# See https://docs.firezone.dev/reference/env-vars for more info.

View File

@@ -1,6 +1,7 @@
#!/bin/sh
cat <<-EOF
VERSION=latest
EXTERNAL_URL=_CHANGE_ME_
ADMIN_EMAIL=_CHANGE_ME_
DEFAULT_ADMIN_PASSWORD=$(openssl rand -base64 12)

View File

@@ -149,6 +149,9 @@ firezoneSetup() {
echo "TELEMETRY_ENABLED=$telemEnabled" >> "$installDir/.env"
echo "TID=$tid" >> "$installDir/.env"
LATEST_VERSION=$(curl -fsSL https://api.github.com/repos/firezone/firezone/releases/latest | grep -w tag_name | cut -d '"' -f 4)
sed -i.bak "s~VERSION=.*~VERSION=${LATEST_VERSION}~" "$installDir/.env"
# XXX: This causes perms issues on macOS with postgres
# echo "UID=$(id -u)" >> $installDir/.env
# echo "GID=$(id -g)" >> $installDir/.env