mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 05:37:53 +00:00
Specify vpn endpoint in the config file
This commit is contained in:
parent
c250ff483c
commit
177e9ddd7c
@ -6,6 +6,7 @@ PUBNUB_PUBLISH_KEY=pub-c-bananas
|
||||
MIXPANEL_TOKEN=bananasbananas
|
||||
LISTEN_PORT=48484
|
||||
RESIN_SUPERVISOR_SECRET=bananas
|
||||
VPN_ENDPOINT=vpn.resinstaging.io
|
||||
|
||||
SUPERVISOR_IMAGE=
|
||||
LED_FILE=/dev/null
|
||||
|
@ -1,5 +1,5 @@
|
||||
client
|
||||
remote vpn.resinstaging.io 443
|
||||
remote #{VPN_ENDPOINT} 443
|
||||
resolv-retry infinite
|
||||
|
||||
remote-cert-tls server
|
@ -1,4 +1,6 @@
|
||||
#!/bin/bash
|
||||
sed --expression="s/#{VPN_ENDPOINT}/${VPN_ENDPOINT}/" /etc/openvpn/client.conf.tmpl > /etc/openvpn/client.conf
|
||||
|
||||
while true; do
|
||||
if [ `jq ".uuid | length" $CONFIG_PATH` -eq 0 ]; then
|
||||
echo "UUID missing from config file, VPN cannot connect"
|
||||
|
Loading…
Reference in New Issue
Block a user