Files
2021-10-03 14:45:56 +03:00

24 lines
684 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Traefik-client
- Вытягивает с [traefik-api](../traefik/readme.MD) сертификаты через `ssh`.
- Перезапускает нужный сервис
1. Заполняем `.env` файл нужными значениями.
2. Генерируем на машине, которой нужны сертификаты, ssh-ключ, чтобы ходить на машину с `traefik`
```
ssh-keygen
```
3. копируем их на машину с `traefik`
```
ssh-copy-id root@traefik_ip
```
4. настраиваем `crontab` на регулярные обновления
```
30 07 * *\1 * cd /srv/services/traefik-client/ && ./getcert.sh
```