-
-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add env vars for configuring constants.
- Loading branch information
Showing
17 changed files
with
149 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
Environment variables | ||
===================== | ||
|
||
Logging | ||
------- | ||
|
||
.. envvar:: WEBSOCKETS_MAX_LOG_SIZE | ||
|
||
How much of each frame to show in debug logs. | ||
|
||
The default value is ``75``. | ||
|
||
See the :doc:`logging guide <../topics/logging>` for details. | ||
|
||
Security | ||
........ | ||
|
||
.. envvar:: WEBSOCKETS_SERVER | ||
|
||
Server header sent by websockets. | ||
|
||
The default value uses the format ``"Python/x.y.z websockets/X.Y"``. | ||
|
||
.. envvar:: WEBSOCKETS_USER_AGENT | ||
|
||
User-Agent header sent by websockets. | ||
|
||
The default value uses the format ``"Python/x.y.z websockets/X.Y"``. | ||
|
||
.. envvar:: WEBSOCKETS_MAX_LINE_LENGTH | ||
|
||
Maximum length of the request or status line in the opening handshake. | ||
|
||
The default value is ``8192``. | ||
|
||
.. envvar:: WEBSOCKETS_MAX_NUM_HEADERS | ||
|
||
Maximum number of HTTP headers in the opening handshake. | ||
|
||
The default value is ``128``. | ||
|
||
.. envvar:: WEBSOCKETS_MAX_BODY_SIZE | ||
|
||
Maximum size of the body of an HTTP response in the opening handshake. | ||
|
||
The default value is ``1_048_576`` (1 MiB). | ||
|
||
See the :doc:`security guide <../topics/security>` for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.