Browse Source

change to mode prod (rename conf file)

master
Adel Daouzli 4 years ago
parent
commit
1fa0abb877
4 changed files with 45 additions and 45 deletions
  1. +25
    -4
      vh_le.conf
  2. +1
    -1
      vh_le.py
  3. +0
    -40
      vh_le_final.conf
  4. +19
    -0
      vh_le_test.conf

+ 25
- 4
vh_le.conf View File

@ -1,19 +1,40 @@
# the main domain
domain_main = "www.hadoly.fr"
# list of TLDs used to determine the secondary domains
tld = ['fr', 'org']
# domain's base name used to determine the secondary domains
name = "hadoly"
# list of subdomains used to determine the secondary domains
sub = ['www']
# the IPv6
ip6_back = "2001:0912:3064:XXXX"
# the main zone record without extension
main_zone = "merlin.hadoly"
# path for Let'sEncrypt certificate
le_certificate_folder = "/etc/nginx/sites"
# path for ACME configuration
acme_folder = "/etc/acme"
# the template Vhost file
template_nginx_vhost = "./nginx_vhost_template"
# the temporary template Vhost file for Let's Encrypt
template_le_nginx_vhost = "./nginx_le_vhost_template"
# the template file for ACME config
template_acme_conf = "./acme_config_template"
available_path = "./available"
enabled_path = "./enabled"
le_certificate_folder = "./sites"
acme_folder = "./acme"
# path to sites-available
available_path = "/etc/nginx/sites-available"
# path to sites-enabled
enabled_path = "/etc/nginx/sites-enabled"

+ 1
- 1
vh_le.py View File

@ -419,7 +419,7 @@ if step[9]:
print_info("\n++++++ STEP 9 : update the Nginx enable final configuration file ++++++")
if generate_file(c['template_nginx_vhost'],
c['available_path'] + "/" + c['domain_main']+"_final", #TODO remove _final
c['available_path'] + "/" + c['domain_main'],
{"main_domain": c['domain_main'],
"second_domains": ' '.join(domains),
"ip6_back": c['ip6_back']}) == False:


+ 0
- 40
vh_le_final.conf View File

@ -1,40 +0,0 @@
# the main domain
domain_main = "www.hadoly.fr"
# list of TLDs used to determine the secondary domains
tld = ['fr', 'org']
# domain's base name used to determine the secondary domains
name = "hadoly"
# list of subdomains used to determine the secondary domains
sub = ['www']
# the IPv6
ip6_back = "2001:0912:3064:XXXX"
# the main zone record without extension
main_zone = "merlin.hadoly"
# path for Let'sEncrypt certificate
le_certificate_folder = "/etc/nginx/sites"
# path for ACME configuration
acme_folder = "/etc/acme"
# the template Vhost file
template_nginx_vhost = "./nginx_vhost_template"
# the temporary template Vhost file for Let's Encrypt
template_le_nginx_vhost = "./nginx_le_vhost_template"
# the template file for ACME config
template_acme_conf = "./acme_config_template"
# path to sites-available
available_path = "/etc/nginx/sites-available"
# path to sites-enabled
enabled_path = "/etc/nginx/sites-enabled"

+ 19
- 0
vh_le_test.conf View File

@ -0,0 +1,19 @@
domain_main = "www.hadoly.fr"
tld = ['fr', 'org']
name = "hadoly"
sub = ['www']
ip6_back = "2001:0912:3064:XXXX"
main_zone = "merlin.hadoly"
template_nginx_vhost = "./nginx_vhost_template"
template_le_nginx_vhost = "./nginx_le_vhost_template"
template_acme_conf = "./acme_config_template"
available_path = "./available"
enabled_path = "./enabled"
le_certificate_folder = "./sites"
acme_folder = "./acme"

Loading…
Cancel
Save