docs: syntax highlighting
This commit is contained in:
parent
5464eaa826
commit
60a694ce7e
1 changed files with 3 additions and 3 deletions
|
|
@ -28,7 +28,7 @@
|
||||||
- Docker
|
- Docker
|
||||||
|
|
||||||
1. Выполним команды:
|
1. Выполним команды:
|
||||||
```
|
```bash
|
||||||
docker run --rm -v ./.ssl:/ssl --entrypoint /bin/sh alpine/openssl -c "/ssl/gen-ca.sh && /ssl/gen-cert.sh localhost"
|
docker run --rm -v ./.ssl:/ssl --entrypoint /bin/sh alpine/openssl -c "/ssl/gen-ca.sh && /ssl/gen-cert.sh localhost"
|
||||||
docker compose build
|
docker compose build
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
|
|
@ -38,12 +38,12 @@
|
||||||
## Использование
|
## Использование
|
||||||
|
|
||||||
Получить MOTD:
|
Получить MOTD:
|
||||||
```
|
```bash
|
||||||
curl -k https://localhost/motd
|
curl -k https://localhost/motd
|
||||||
```
|
```
|
||||||
|
|
||||||
Установить MOTD:
|
Установить MOTD:
|
||||||
```
|
```bash
|
||||||
curl -k -X POST https://localhost/motd \
|
curl -k -X POST https://localhost/motd \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{"message":"Hello from MOTD app"}'
|
-d '{"message":"Hello from MOTD app"}'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue