Skip to content

Commit 8cdeb9f

Browse files
authored
Update README.md
1 parent fbf18b3 commit 8cdeb9f

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
44
[![GitHub last commit](https://img.shields.io/github/last-commit/do6pbln9l/hh-oauth2-keendns-nginx-systemd)](https://github.com/do6pbln9l/hh-oauth2-keendns-nginx-systemd)
5+
[![CI](https://github.com/do6pbln9l/hh-oauth2-keendns-nginx-systemd/actions/workflows/lint.yml/badge.svg)](https://github.com/do6pbln9l/hh-oauth2-keendns-nginx-systemd/actions/workflows/lint.yml)
56
[![Docker image](https://img.shields.io/badge/GHCR-hh--oauth2--infra-2ea44f?logo=docker)](https://ghcr.io/do6pbln9l/hh-oauth2-infra)
67
[![Repo size](https://img.shields.io/github/repo-size/do6pbln9l/hh-oauth2-keendns-nginx-systemd)](#)
78

@@ -136,7 +137,7 @@ curl -sS -H "Authorization: Bearer \${ACCESS_TOKEN}" https://api.hh.ru/me | jq '
136137

137138
## 🧪 Тестирование инфраструктуры
138139

139-
### Назначение тестового сервера
140+
### 1. Назначение тестового сервера
140141

141142
**scripts/test-8000.py** — минимальный HTTP-сервер для **проверки инфраструктуры** без запуска продакшен-приложения:
142143

@@ -152,7 +153,7 @@ curl -sS -H "Authorization: Bearer \${ACCESS_TOKEN}" https://api.hh.ru/me | jq '
152153
- Не работает с базой данных
153154
- Не реализует функционал продакшен-приложения
154155

155-
### Запуск тестового сервера
156+
### 2. Запуск тестового сервера
156157

157158
```
158159
@@ -170,7 +171,7 @@ Starting test server on http://0.0.0.0:8000
170171
171172
```
172173

173-
### Проверка через nginx (локально)
174+
### 3. Проверка через nginx (локально)
174175

175176
```
176177
@@ -189,7 +190,7 @@ curl -i "http://127.0.0.1:8000/callback?code=TEST123"
189190
190191
```
191192

192-
### Проверка через KeenDNS (внешний доступ)
193+
### 4. Проверка через KeenDNS (внешний доступ)
193194

194195
```
195196
@@ -198,7 +199,7 @@ curl -i "https://your-domain.keenetic.pro/callback?code=TEST123"
198199
199200
```
200201

201-
### Проверка логов
202+
### 5. Проверка логов
202203

203204
```
204205
@@ -217,24 +218,24 @@ journalctl -t hh-token-refresh --since today -f
217218

218219
## Запуск через Docker (GHCR)
219220

220-
### Всегда последняя стабильная версия
221+
### 1. Всегда последняя стабильная версия
221222
```
222223
docker pull ghcr.io/do6pbln9l/hh-oauth2-infra:latest
223224
docker run --rm -p 8000:8000 ghcr.io/do6pbln9l/hh-oauth2-infra:latest
224225
```
225226

226-
### Конкретная версия (пример)
227+
### 2. Конкретная версия (пример)
227228
```
228229
docker pull ghcr.io/do6pbln9l/hh-oauth2-infra:v1.0.0
229230
docker run --rm -p 8000:8000 ghcr.io/do6pbln9l/hh-oauth2-infra:v1.0.0
230231
```
231232

232-
### Проверка
233+
### 3. Проверка
233234
```
234235
curl -i http://127.0.0.1:8000/
235236
curl -i "http://127.0.0.1:8000/callback?code=TEST123"
236237
```
237-
> Образ опубликован в GHCR: [ghcr.io/do6pbln9l/hh-oauth2-infra](ghcr.io/do6pbln9l/hh-oauth2-infra)
238+
> **Образ опубликован в GHCR:** [ghcr.io/do6pbln9l/hh-oauth2-infra](https://github.com/do6pbln9l/hh-oauth2-keendns-nginx-systemd/pkgs/container/hh-oauth2-infra)
238239
>
239240
> Если на вашем сервере Docker использует storage-driver vfs и блокирует запуск контейнеров, запустите образ на любой машине/VM с overlay2 или проверяйте через GitHub Actions.
240241

0 commit comments

Comments
 (0)