Skip to content

Instantly share code, notes, and snippets.

View atomAltera's full-sized avatar
🏠
Working from home

Konstantin Alikhanov atomAltera

🏠
Working from home
  • Nuclight
  • Tbilisi
View GitHub Profile
0xd9Ac5F5177AA6a075921b149D8aa26717267D241
0x7e4A82344200a504782e36E2b077CED92594ECAF
#!/bin/bash
cd $1
docker-compose stop nginx
docker-compose run --rm -p 443:443 nginx certbot renew --post-hook "mv /etc/letsencrypt/keys/0001_key-certbot.pem /etc/letsencrypt/keys/0000_key-certbot.pem"
docker-compose start nginx