Skip to content

Commit 32b70ae

Browse files
authored
Allow overriding the client cert (#318)
1 parent b810264 commit 32b70ae

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

README.rst

+17-4
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,16 @@ Arguments:
8181
- **start/stop/restart**: start, stop, or restart the server,
8282
respectively
8383

84-
In addition, Mongo Orchestration can be influenced by the
85-
``MONGO_ORCHESTRATION_HOME`` environment variable, which informs the
86-
server where to find the "configurations" directory for presets as well
87-
as where to put the log and pid files.
84+
In addition, Mongo Orchestration can be influenced by the following environment variables:
85+
86+
- ``MONGO_ORCHESTRATION_HOME`` - informs the
87+
server where to find the "configurations" directory for presets as well
88+
as where to put the log and pid files.
89+
- ``MONGO_ORCHESTRATION_TMP`` - the temporary folder root location.
90+
- ``MO_HOST`` - the server host (``localhost`` by default)
91+
- ``MO_PORT`` - the server port (8889 by default)
92+
- ``MONGO_ORCHESTRATION_CLIENT_CERT`` - set the client certificate file
93+
to be used by ``mongo-orchestration``.
8894

8995
Examples
9096
~~~~~~~~
@@ -239,6 +245,13 @@ Run a single test example for debugging with verbose and immediate stdout output
239245
Changelog
240246
---------
241247

248+
Changes in Version 0.11.0 (2024-12-30)
249+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
250+
251+
- Allow server daemon to be run as a library in addition to as a cli.
252+
- Add support for ``MONGO_ORCHESTRATION_CLIENT_CERT`` environment variable to set the client certificate file
253+
to be used by ``mongo-orchestration``.
254+
242255
Changes in Version 0.10.0 (2024-11-21)
243256
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
244257

mongo_orchestration/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
)
4848
DEFAULT_SSL_OPTIONS = {
4949
'ssl': True,
50-
'tlsCertificateKeyFile': DEFAULT_CLIENT_CERT,
50+
'tlsCertificateKeyFile': os.environ.get('MONGO_ORCHESTRATION_CLIENT_CERT', DEFAULT_CLIENT_CERT),
5151
'tlsAllowInvalidCertificates': True
5252
}
5353

0 commit comments

Comments
 (0)