mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
support letsencrypt staging server
for easier testing
This commit is contained in:
@@ -40,6 +40,7 @@ default = {
|
||||
"letsencrypt": {
|
||||
"email": "",
|
||||
"domains": [],
|
||||
"staging": False,
|
||||
},
|
||||
},
|
||||
"traefik_api": {
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user