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

+13
View File
@@ -91,6 +91,19 @@ ml-logs: ## Follow ML service logs
@test -f "$(ENV_FILE)" || { printf 'Missing %s.\n' "$(ENV_FILE)" >&2; exit 2; }
APP_PROJECT="$(APP_PROJECT)" APP_NETWORK="$(APP_NETWORK)" $(DOCKER) compose --env-file "$(ENV_FILE)" -p "$(ML_PROJECT)" -f "$(ML_FILE)" logs -f
# Edge proxy (TLS and tunnel templates under deploy/edge). edge.env is local;
# the checked-in example is used when it does not exist.
.PHONY: edge-render edge-config
EDGE_DIR := $(ROOT)/deploy/edge
EDGE_ENV ?= $(if $(wildcard $(EDGE_DIR)/edge.env),$(EDGE_DIR)/edge.env,$(EDGE_DIR)/edge.env.example)
EDGE_NGINX_IMAGE ?= nginx:stable-alpine
edge-render: ## Render the edge nginx config from deploy/edge/edge.env into deploy/edge/rendered
@bash "$(EDGE_DIR)/scripts/render.sh" --env "$(EDGE_ENV)" --out "$(EDGE_DIR)/rendered" nginx
edge-config: ## Render the edge templates and check the nginx config with nginx -t in a container
@DOCKER="$(DOCKER)" EDGE_NGINX_IMAGE="$(EDGE_NGINX_IMAGE)" bash "$(EDGE_DIR)/scripts/check.sh" "$(EDGE_ENV)"
check: config check-workflows check-release ## Validate Compose files, CI workflow aggregates, and release tooling without starting services
check-workflows: ## Check that each workflow aggregate job requires every other job