You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
874 B
30 lines
874 B
import sys
|
|
import os
|
|
|
|
# Docker project directory
|
|
project_dir = os.path.dirname(sys.argv[0])
|
|
|
|
# Email address for Let's Encrypt notices
|
|
email = 'user@host.tld'
|
|
|
|
# First domain in Certbot command line
|
|
primary_domain = 'domain.tld'
|
|
|
|
# Domains to ignore
|
|
ignored_domains = ['localhost']
|
|
|
|
# Location of Nginx configuration file
|
|
nginx_config_file = os.path.join(project_dir, 'data/etc/nginx/nginx.conf')
|
|
|
|
# Default arguments for Certbot
|
|
certbot_command = ['certbot',
|
|
'certonly',
|
|
'--config-dir', os.path.join(project_dir, 'data/etc/letsencrypt'),
|
|
# '--post-hook', 'docker-compose -f {} restart'.format(shlex.quote(os.path.join(PROJECT_DIR, 'docker-compose.yml'))),
|
|
'--webroot',
|
|
# '--staging',
|
|
'--agree-tos',
|
|
'--expand',
|
|
'-n',
|
|
'-m', email,
|
|
'-w', os.path.join(project_dir, 'data/usr/share/nginx/certbot')]
|
|
|