1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00
Files
AdministrationItDepartmens/docker/frontend/init-ssl.sh
2025-01-03 00:20:01 +06:00

23 lines
564 B
Bash

#!/bin/sh
# Остановка nginx
nginx -s stop || true
# Получение сертификата
certbot certonly --standalone \
--email crocoman7887@gmail.com \
--agree-tos \
--no-eff-email \
--staging \
-d itformhelp.ru
# После успешного получения сертификата в staging, получаем боевой сертификат
certbot certonly --standalone \
--email crocoman7887@gmail.com \
--agree-tos \
--no-eff-email \
--force-renewal \
-d itformhelp.ru
# Запуск nginx
nginx -g "daemon off;"