mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
ssl сертификат
This commit is contained in:
23
docker/frontend/init-ssl.sh
Normal file
23
docker/frontend/init-ssl.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/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;"
|
||||
Reference in New Issue
Block a user