1. add systemd units deployment recipie; 2. add certbot periodic task; 3. update nginx_config.py to user ssl_preread_server_name instead of protocol, since it seems to be broken;
20 lines
383 B
Python
20 lines
383 B
Python
#!/usr/bin/env python3
|
|
|
|
import subprocess
|
|
import time
|
|
import logging
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
logging.basicConfig(level=logging.INFO)
|
|
|
|
while True:
|
|
subprocess.check_call([
|
|
'docker', 'compose', 'exec', 'ssl-app', 'certbot', 'renew',
|
|
])
|
|
subprocess.check_call([
|
|
'docker', 'compose', 'exec', 'ssl-app', 'nginx', '-s', 'reload',
|
|
])
|
|
break
|