Skip to content

Commit 05fe91a

Browse files
committed
Update readme regarding default output path and last modified check
1 parent dc0cc6a commit 05fe91a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The main features of the default configuration are:
6464
* Process count limit
6565
* No networking
6666
* Restricted, read-only system filesystem
67-
* Memory-based virtual read-write filesystem mounted as cwd at `/home`
67+
* Memory-based read-write filesystem mounted as working directory `/home`
6868

6969
NsJail is configured through [`snekbox.cfg`]. It contains the exact values for the items listed above. The configuration format is defined by a [protobuf file][7] which can be referred to for documentation. The command-line options of NsJail can also serve as documentation since they closely follow the config file format.
7070

@@ -75,15 +75,13 @@ On each execution, the host will mount an instance-specific `tmpfs` drive, this
7575
The following options for the memory file system are configurable as options in [gunicorn.conf.py](config/gunicorn.conf.py)
7676

7777
* `memfs_instance_size` Size in bytes for the capacity of each instance file system.
78+
* `memfs_home` Path to the home directory within the instance file system.
79+
* `memfs_output` Path to the output directory within the instance file system.
7880
* `files_limit` Maximum number of valid output files to parse.
7981
* `files_timeout` Maximum time in seconds for output file parsing and encoding.
8082
* `files_pattern` Glob pattern to match files within `output`.
8183

82-
The sandboxed code execution will start with a writeable working directory of `home`. Any files written within the subfolder `output` will be parsed for output.
83-
```
84-
/home
85-
|- output
86-
```
84+
The sandboxed code execution will start with a writeable working directory of `home`. By default, the output folder is also `home`. New files, and uploaded files with a newer last modified time, will be uploaded on completion.
8785

8886
### Gunicorn
8987

0 commit comments

Comments
 (0)