uncomment and replace mail name and delete hiphen on init scripts

This commit is contained in:
valitovgaziz
2025-05-07 16:38:35 +05:00
parent 8a8ee12779
commit c5d10d3b5d
2 changed files with 16 additions and 16 deletions
+4 -4
View File
@@ -2,13 +2,13 @@
# Убедитесь, что домены указаны правильно
domains="yalarba.ru www.yalarba.ru"
email="your-email@example.com" # Замените на реальный email
email="valitovgaziz@yandex.ru" # Замените на реальный email
# Создаём временный контейнер Nginx для верификации
docker-compose up -d nginx
docker compose up -d nginx
# Запускаем Certbot для получения сертификатов
docker-compose run --rm certbot certonly --webroot --webroot-path /var/www/certbot --email $email --agree-tos --no-eff-email -d $domains --force-renewal
docker compose run --rm certbot certonly --webroot --webroot-path /var/www/certbot --email $email --agree-tos --no-eff-email -d $domains --force-renewal
# Перезапускаем Nginx с новыми сертификатами
docker-compose restart nginx
docker compose restart nginx