diff options
author | 2022-06-07 10:26:29 -0700 | |
---|---|---|
committer | 2022-06-07 14:23:09 -0700 | |
commit | c9bfff85556b1023bc4e02d14cfe6dabb1fd473d (patch) | |
tree | 11e0e4fb2f484865f00d09e30b0f446f3f20154f /README.md | |
parent | Use new NsJail instance for each test in NsJailArgsTests (diff) |
Mention output limit can be customised and fix link in README.md
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -28,7 +28,7 @@ Snekbox -->>- Client: JSON response The code is executed in a Python process that is launched through [NsJail], which is responsible for sandboxing the Python process. -The output returned by snekbox is truncated at around 1 MB. +The output returned by snekbox is truncated at around 1 MB by default, but this can be [configured](#gunicorn). ## HTTP REST API @@ -68,7 +68,7 @@ NsJail is configured through [`snekbox.cfg`]. It contains the exact values for t [Gunicorn settings] can be found in [`gunicorn.conf.py`]. In the default configuration, the worker count, the bind address, and the WSGI app URI are likely the only things of any interest. Since it uses the default synchronous workers, the [worker count] effectively determines how many concurrent code evaluations can be performed. -`wsgi_app` can be given arguments which are forwarded to the `NsJail` object. For example, `wsgi_app = "snekbox:SnekAPI(max_output_size=2_000_000, read_chunk_size=20_000)"`. +`wsgi_app` can be given arguments which are forwarded to the [`NsJail`] object. For example, `wsgi_app = "snekbox:SnekAPI(max_output_size=2_000_000, read_chunk_size=20_000)"`. ### Environment Variables |