mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-10-29 03:00:09 +00:00
tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
9472f995a0
commit
eae24e3aff
@ -34,7 +34,7 @@ entryPoints:
|
|||||||
address: ':443'
|
address: ':443'
|
||||||
|
|
||||||
traefik:
|
traefik:
|
||||||
address: ':8080'
|
address: '${GATE_ADMIN_IPn}:8080'
|
||||||
|
|
||||||
|
|
||||||
api:
|
api:
|
||||||
|
|||||||
@ -38,6 +38,7 @@ LAN_GATE=SKIP
|
|||||||
|
|
||||||
REBOOT=${REBOOT:=1}
|
REBOOT=${REBOOT:=1}
|
||||||
|
|
||||||
|
|
||||||
# Wireguard config...
|
# Wireguard config...
|
||||||
DFL_ENDPOINT=${DFL_ENDPOINT:=$(\
|
DFL_ENDPOINT=${DFL_ENDPOINT:=$(\
|
||||||
which dig > /dev/null 2>&1 \
|
which dig > /dev/null 2>&1 \
|
||||||
@ -59,6 +60,7 @@ xread "Local network DNS:" DNS
|
|||||||
xreadYes "Show profile as QRcode when done?" QRCODE
|
xreadYes "Show profile as QRcode when done?" QRCODE
|
||||||
QRCODE=${QRCODE:-0}
|
QRCODE=${QRCODE:-0}
|
||||||
|
|
||||||
|
|
||||||
readVars
|
readVars
|
||||||
|
|
||||||
|
|
||||||
@ -94,7 +96,8 @@ echo "# Creating CT..."
|
|||||||
pctCreateAlpine $ID "${OPTS_STAGE_1}" "$PASS"
|
pctCreateAlpine $ID "${OPTS_STAGE_1}" "$PASS"
|
||||||
|
|
||||||
echo "# Installing dependencies..."
|
echo "# Installing dependencies..."
|
||||||
@ lxc-attach $ID apk add iptables wireguard-tools-wg-quick make bind-tools libqrencode logrotate
|
@ lxc-attach $ID apk add \
|
||||||
|
iptables wireguard-tools-wg-quick make bind-tools libqrencode logrotate
|
||||||
|
|
||||||
echo "# Copying assets..."
|
echo "# Copying assets..."
|
||||||
@ pct-push-r $ID ./assets /
|
@ pct-push-r $ID ./assets /
|
||||||
@ -104,10 +107,6 @@ echo "# Setup: wireguard server and client profile..."
|
|||||||
@ lxc-attach $ID -- bash -c "cd /root \
|
@ lxc-attach $ID -- bash -c "cd /root \
|
||||||
&& QRCODE=${QRCODE} make server default.client"
|
&& QRCODE=${QRCODE} make server default.client"
|
||||||
|
|
||||||
#echo "# client config:"
|
|
||||||
#@ mkdir -p clients
|
|
||||||
#@ pct pull $ID /etc/wireguard/clients/default.wg clients/default.conf
|
|
||||||
|
|
||||||
echo "# Post config..."
|
echo "# Post config..."
|
||||||
pctSet $ID "${OPTS_STAGE_2}" $REBOOT
|
pctSet $ID "${OPTS_STAGE_2}" $REBOOT
|
||||||
|
|
||||||
|
|||||||
@ -42,6 +42,7 @@ ALLOWED_IPS ?= ${ALLOWED_IPS}
|
|||||||
|
|
||||||
# NOTE: the first letter of each pattern is quoted to prevent it from
|
# NOTE: the first letter of each pattern is quoted to prevent it from
|
||||||
# being substituted when generating this Makefile from template.
|
# being substituted when generating this Makefile from template.
|
||||||
|
# XXX build this from client files...
|
||||||
$(SERVER_CONF): $(SERVER_TPL) $(SERVER_KEY)
|
$(SERVER_CONF): $(SERVER_TPL) $(SERVER_KEY)
|
||||||
cat $< \
|
cat $< \
|
||||||
| sed \
|
| sed \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user