From 832f76ce26ffb2f3e27a006ff90254374bd90e61 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Mon, 9 Sep 2024 09:18:47 -0700 Subject: [PATCH] Documentation for datasette serve environment variables Refs #2422, #2424 --- docs/cli-reference.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/cli-reference.rst b/docs/cli-reference.rst index 8e33344799..67e0625481 100644 --- a/docs/cli-reference.rst +++ b/docs/cli-reference.rst @@ -141,6 +141,17 @@ Once started you can access it at ``http://localhost:8001`` .. [[[end]]] +.. _cli_datasette_serve_env: + +Environment variables +--------------------- + +Some of the ``datasette serve`` options can be provided by environment variables: + +- ``DATASETTE_SECRET``: Equivalent to the ``--secret`` option. +- ``DATASETTE_SSL_KEYFILE``: Equivalent to the ``--ssl-keyfile`` option. +- ``DATASETTE_SSL_CERTFILE``: Equivalent to the ``--ssl-certfile`` option. +- ``DATASETTE_LOAD_EXTENSION``: Equivalent to the ``--load-extension`` option. .. _cli_datasette_get: