Разбить API на модули и перевести комментарии на русский

This commit is contained in:
celis
2026-10-29 22:26:25 +03:00
parent c4f9eb7648
commit e8ba028b89
29 changed files with 630 additions and 456 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
#!/bin/sh
# Creates local synthetic credentials and .env once. Never overwrites: the pgdata volume keeps the old password.
# Один раз создаёт локальные учебные секреты и .env. Не перезаписывает: в volume pgdata остаётся старый пароль.
set -eu
cd "$(dirname "$0")/.."
[ -f .env ] || cp .env.example .env
@@ -12,5 +12,5 @@ chmod 700 secrets
password=$(openssl rand -hex 24)
printf '%s' "$password" > secrets/postgres_password
printf 'postgres://messenger:%s@postgres:5432/messenger' "$password" > secrets/database_url
chmod 644 secrets/postgres_password secrets/database_url # read by container users; the directory stays 700
chmod 644 secrets/postgres_password secrets/database_url # читают пользователи контейнеров; сам каталог остаётся 700
echo "created secrets/ and .env"