Skip to content

Commit

Permalink
support letsencrypt staging server
Browse files Browse the repository at this point in the history
for easier testing
  • Loading branch information
minrk committed May 16, 2023
1 parent cb891f6 commit d3aea5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tljh/configurer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"letsencrypt": {
"email": "",
"domains": [],
"staging": False,
},
},
"traefik_api": {
Expand Down
3 changes: 3 additions & 0 deletions tljh/traefik.toml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ X-Xsrftoken = "redact"
[certificatesResolvers.letsencrypt.acme]
email = "{{ https['letsencrypt']['email'] }}"
storage = "acme.json"
{% if https['letsencrypt']['staging'] -%}
caServer = "https://acme-staging-v02.api.letsencrypt.org/directory"
{%- endif %}
[certificatesResolvers.letsencrypt.acme.tlsChallenge]
{% endif %}

Expand Down

0 comments on commit d3aea5b

Please sign in to comment.