Skip to content

Commit 832f76c

Browse files
committed
Documentation for datasette serve environment variables
Refs #2422, #2424
1 parent ea9f66f commit 832f76c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/cli-reference.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,17 @@ Once started you can access it at ``http://localhost:8001``
141141

142142
.. [[[end]]]
143143
144+
.. _cli_datasette_serve_env:
145+
146+
Environment variables
147+
---------------------
148+
149+
Some of the ``datasette serve`` options can be provided by environment variables:
150+
151+
- ``DATASETTE_SECRET``: Equivalent to the ``--secret`` option.
152+
- ``DATASETTE_SSL_KEYFILE``: Equivalent to the ``--ssl-keyfile`` option.
153+
- ``DATASETTE_SSL_CERTFILE``: Equivalent to the ``--ssl-certfile`` option.
154+
- ``DATASETTE_LOAD_EXTENSION``: Equivalent to the ``--load-extension`` option.
144155

145156
.. _cli_datasette_get:
146157

0 commit comments

Comments
 (0)