Skip to content

Commit

Permalink
Merge pull request #32 from inmotionhosting/NGX-817
Browse files Browse the repository at this point in the history
NGX-817: Handle site_domain when starting with www.
  • Loading branch information
combssm authored Jan 17, 2024
2 parents 94ef1ca + bf24603 commit d7b6725
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ certbot_create_command: >-
--cert-name {{ site_domain }}
--allow-subset-of-names
{% if certbot_without_email %}--register-unsafely-without-email{% else %}--email {{ site_email }}{% endif %}
-d {{ site_domain }}{% if not site_domain.startswith('www') %},www.{{ site_domain }}{% endif %}
-d {{ site_domain }}{% if not site_domain.startswith('www') %},www.{{ site_domain }}{% else %}{{ site_domain[4:] }}{% endif %}
{% if certbot_test_cert | bool %}--test-cert{% endif %}
--pre-hook /etc/letsencrypt/renewal-hooks/pre/stop_services
--post-hook /etc/letsencrypt/renewal-hooks/post/start_services
Expand Down

0 comments on commit d7b6725

Please sign in to comment.