feat: add domain and install scripts for apps

This commit is contained in:
lolwierd
2026-03-27 19:32:47 +05:30
parent 442ae83280
commit 9b93d6898b
26 changed files with 900 additions and 13 deletions

View File

@@ -38,26 +38,26 @@ set_env "SIGNOZ_ALERTMANAGER_SIGNOZ_EXTERNAL_URL" "${URL}" ".services.signoz.env
cat > /etc/caddy/Caddyfile << EOF
${URL} {
reverse_proxy localhost:${APP_UPSTREAM_PORT}
reverse_proxy 127.0.0.1:${APP_UPSTREAM_PORT}
}
${URL}:4317 {
reverse_proxy h2c://localhost:44317
reverse_proxy h2c://127.0.0.1:44317
}
${URL}:4318 {
reverse_proxy localhost:44318
reverse_proxy 127.0.0.1:44318
}
# ${INTERNAL_URL} {
# reverse_proxy localhost:${APP_UPSTREAM_PORT}
# reverse_proxy 127.0.0.1:${APP_UPSTREAM_PORT}
# }
#
# ${INTERNAL_URL}:4317 {
# reverse_proxy h2c://localhost:44317
# reverse_proxy h2c://127.0.0.1:44317
# }
#
# ${INTERNAL_URL}:4318 {
# reverse_proxy localhost:44318
# reverse_proxy 127.0.0.1:44318
# }
EOF

View File

@@ -17,14 +17,16 @@ if [ -z "$DOMAIN" ]; then
fi
JWT_SECRET=$(openssl rand -hex 16 | cut -c-32)
if [ -f "${APP_DIR}/jwt-secret" ]; then
JWT_SECRET=$(cat ${APP_DIR}/jwt-secret)
else
echo $JWT_SECRET > ${APP_DIR}/jwt-secret
fi
SIGNOZ_DIR="${APP_DIR}/signoz"
JWT_SECRET_FILE="${SIGNOZ_DIR}/jwt-secret"
mkdir -p "${SIGNOZ_DIR}"
if [ -f "${JWT_SECRET_FILE}" ]; then
JWT_SECRET=$(cat "${JWT_SECRET_FILE}")
else
echo "${JWT_SECRET}" > "${JWT_SECRET_FILE}"
fi
COMPOSE_FILE="${SIGNOZ_DIR}/deploy/docker/docker-compose.yaml"
OTEL_SERVICE_PATH='.services["otel-collector"].ports'
SIGNOZ_SERVICE_PATH=".services.signoz.ports"