feat(deploy): add edge proxy HTTPS and AmneziaWG tunnel templates
This commit is contained in:
1 parent
bdc5855001
commit
b8c3c83ed8
21 files changed
+954
-3
No files matched your search
@@ -0,0 +1,41 @@
|
||||
# Edge proxy configuration. Copy to edge.env and adjust; the file holds no
|
||||
# secrets, only names and addresses. Keys and obfuscation parameters of the
|
||||
# tunnel live in a separate root-only file on each server (see awg/).
|
||||
#
|
||||
# Rendered with: make -C deploy edge-render
|
||||
# Checked with: make -C deploy edge-config
|
||||
|
||||
# Public name served by the edge nginx. It must resolve to EDGE_LISTEN_IP.
|
||||
EDGE_DOMAIN=lincodex.safelysvn.space
|
||||
# Certbot lineage name; the certificate is read from
|
||||
# /etc/letsencrypt/live/<EDGE_CERT_NAME>/. Use the domain unless certbot
|
||||
# was run with --cert-name.
|
||||
EDGE_CERT_NAME=lincodex.safelysvn.space
|
||||
# The only address nginx binds to on ports 80 and 443. Never 0.0.0.0: the
|
||||
# shared edge host has other listeners (for example UDP 443).
|
||||
EDGE_LISTEN_IP=89.185.85.208
|
||||
# Directory served for ACME http-01 challenges (certbot --webroot-path).
|
||||
EDGE_ACME_WEBROOT=/var/www/certbot
|
||||
# Strict-Transport-Security max-age in seconds (180 days). Raise it to
|
||||
# 31536000 and consider preload only after the site has run on HTTPS for a while.
|
||||
EDGE_HSTS_MAX_AGE=15552000
|
||||
# Request body limit. Keep it at or above the inner nginx limit (10m) and the
|
||||
# largest upload policy (resume: 5 MB plus multipart overhead).
|
||||
EDGE_MAX_BODY=10m
|
||||
|
||||
# Tunnel: one dedicated point-to-point AmneziaWG link between the edge (server
|
||||
# role) and the app host (client role, behind NAT, initiates the handshake).
|
||||
# The /30 must not overlap any route or Docker range on either host.
|
||||
AWG_IFACE=awg-lincodex
|
||||
AWG_EDGE_IP=10.79.0.1
|
||||
AWG_APP_IP=10.79.0.2
|
||||
AWG_PREFIX=30
|
||||
# Public address and UDP port the edge listens on for the tunnel (not 443).
|
||||
AWG_EDGE_ENDPOINT_IP=213.165.42.19
|
||||
AWG_PORT=51871
|
||||
AWG_MTU=1380
|
||||
AWG_KEEPALIVE=25
|
||||
|
||||
# Port the app host publishes for the frontend container (APP_HTTP_PORT in the
|
||||
# app .env). The edge proxies to AWG_APP_IP:APP_HTTP_PORT.
|
||||
APP_HTTP_PORT=8080
|
||||
Reference in new issue
Block a user