feat(deploy): add edge proxy HTTPS and AmneziaWG tunnel templates

This commit is contained in:
shira committed 2026-10-06 15:58:28 +03:00
1 parent bdc5855001
commit b8c3c83ed8
21 files changed
+954 -3

No files matched your search

@@ -0,0 +1,30 @@
# AmneziaWG, app host (client role): /etc/amnezia/amneziawg/{{AWG_IFACE}}.conf
# Rendered by deploy/edge/scripts/render.sh from the root-only parameters
# file on the host. The rendered file holds the private key: mode 600,
# never commit or print it.
[Interface]
Address = {{AWG_APP_IP}}/{{AWG_PREFIX}}
MTU = {{AWG_MTU}}
PrivateKey = {{AWG_PRIVATE_KEY}}
# Obfuscation parameters. Both ends must carry identical values.
Jc = {{AWG_JC}}
Jmin = {{AWG_JMIN}}
Jmax = {{AWG_JMAX}}
S1 = {{AWG_S1}}
S2 = {{AWG_S2}}
H1 = {{AWG_H1}}
H2 = {{AWG_H2}}
H3 = {{AWG_H3}}
H4 = {{AWG_H4}}
[Peer]
# The edge proxy.
PublicKey = {{AWG_PEER_PUBLIC_KEY}}
Endpoint = {{AWG_EDGE_ENDPOINT_IP}}:{{AWG_PORT}}
# Only the edge tunnel address. Never 0.0.0.0/0: the host keeps its own
# default route and its LAN access.
AllowedIPs = {{AWG_EDGE_IP}}/32
# This side sits behind NAT; the keepalive holds the mapping open so the
# edge can reach the app host at any time.
PersistentKeepalive = {{AWG_KEEPALIVE}}
@@ -0,0 +1,27 @@
# AmneziaWG, edge side (server role): /etc/amnezia/amneziawg/{{AWG_IFACE}}.conf
# Rendered by deploy/edge/scripts/render.sh from the root-only parameters
# file on the host. The rendered file holds the private key: mode 600,
# never commit or print it.
[Interface]
Address = {{AWG_EDGE_IP}}/{{AWG_PREFIX}}
ListenPort = {{AWG_PORT}}
MTU = {{AWG_MTU}}
PrivateKey = {{AWG_PRIVATE_KEY}}
# Obfuscation parameters. Both ends must carry identical values.
Jc = {{AWG_JC}}
Jmin = {{AWG_JMIN}}
Jmax = {{AWG_JMAX}}
S1 = {{AWG_S1}}
S2 = {{AWG_S2}}
H1 = {{AWG_H1}}
H2 = {{AWG_H2}}
H3 = {{AWG_H3}}
H4 = {{AWG_H4}}
[Peer]
# The app host. It initiates from behind NAT, so no Endpoint is set here.
PublicKey = {{AWG_PEER_PUBLIC_KEY}}
# Only the peer's tunnel address: the tunnel never carries other traffic and
# installs no default route.
AllowedIPs = {{AWG_APP_IP}}/32