nginx
Deploy Observability / Deploy Observability Stack (push) Successful in 36s
Deploy / Deploy to Data VPS (push) Successful in 42s

This commit is contained in:
2026-07-10 17:06:05 +07:00
parent 414667062c
commit 6e47498dc5
8 changed files with 285 additions and 51 deletions
+6
View File
@@ -54,6 +54,12 @@ jobs:
echo "🔑 Генерирую самоподписанный TLS-сертификат для Postgres (первый деплой)..."
openssl req -new -x509 -days 3650 -nodes -subj "/CN=netrunner-db" \
-out postgres/certs/server.crt -keyout postgres/certs/server.key
# postgres:16-alpine работает под UID/GID 70 (не root) — файл,
# созданный openssl от root с правами 600, контейнеру не прочитать
# ("Permission denied" при старте). Владельца нужно менять именно
# на 70:70 (проверено: `docker run --rm postgres:16-alpine id postgres`),
# не 999 — это UID из Debian-образов, у alpine он другой.
chown 70:70 postgres/certs/server.key
chmod 600 postgres/certs/server.key
fi