add cert 2.2

This commit is contained in:
TronoSfera 2026-02-28 15:42:00 +03:00
parent 1d6f575657
commit f7b002a08e
2 changed files with 6 additions and 3 deletions

View file

@ -19,6 +19,9 @@ Prerequisites:
- DNS `A` record: `ruakb.ru -> 45.150.36.116`
- Optional DNS `A` record: `www.ruakb.ru -> 45.150.36.116`
- Open server ports: `80/tcp`, `443/tcp`
- DB credentials in `.env` must be consistent:
- `DATABASE_URL=postgresql+psycopg://postgres:<password>@db:5432/legal`
- `POSTGRES_PASSWORD=<same password>`
Initial certificate issue (bootstrap with nginx on port 80 only):
```bash

View file

@ -106,9 +106,9 @@ services:
container_name: law-db
restart: unless-stopped
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: legal
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-legal}
ports: ["5432:5432"]
volumes: ["pgdata:/var/lib/postgresql/data"]
healthcheck: