Skip to content

Commit

Permalink
Documentation for datasette serve environment variables
Browse files Browse the repository at this point in the history
Refs #2422, #2424
  • Loading branch information
simonw committed Sep 9, 2024
1 parent ea9f66f commit 832f76c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/cli-reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 832f76c

Please sign in to comment.