mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Document that you need a domain name before HTTPS
Also note that Let's Encrypt doesn't work in private networks. Fixes #217
This commit is contained in:
@@ -15,11 +15,23 @@ certificate. Unless you have a strong reason to use the manual method,
|
|||||||
you should use the :ref:`Let's Encrypt <howto/admin/https/letsencrypt>`
|
you should use the :ref:`Let's Encrypt <howto/admin/https/letsencrypt>`
|
||||||
method.
|
method.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
You *must* have a domain name set up to point to the IP address on
|
||||||
|
which TLJH is accessible before you can set up HTTPS.
|
||||||
|
|
||||||
.. _howto/admin/https/letsencrypt:
|
.. _howto/admin/https/letsencrypt:
|
||||||
|
|
||||||
Automatic HTTPS with Let's Encrypt
|
Automatic HTTPS with Let's Encrypt
|
||||||
==================================
|
==================================
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
If the machine you are running on is not reachable from the internet -
|
||||||
|
for example, if it is a machine internal to your organization that
|
||||||
|
is cut off from the internet - you can not use this method. Please
|
||||||
|
set up a DNS entry and HTTPS :ref:`manually <howto/admin/https/manual>`.
|
||||||
|
|
||||||
To enable HTTPS via letsencrypt::
|
To enable HTTPS via letsencrypt::
|
||||||
|
|
||||||
sudo tljh-config set https.enabled true
|
sudo tljh-config set https.enabled true
|
||||||
@@ -33,7 +45,6 @@ Once you have loaded this, your config should look like::
|
|||||||
|
|
||||||
sudo tljh-config show
|
sudo tljh-config show
|
||||||
|
|
||||||
|
|
||||||
.. sourcecode:: yaml
|
.. sourcecode:: yaml
|
||||||
|
|
||||||
https:
|
https:
|
||||||
|
|||||||
Reference in New Issue
Block a user