@@ -42,12 +42,22 @@ For details and available language packages, see the
42
42
43
43
``` console
44
44
$ docker pull unit
45
+ $ mkdir /tmp/unit-control # customize as needed.
46
+ $ docker run -d \
47
+ --mount type=bind,src=/tmp/unit-control,dst=/var/run \
48
+ --mount type=bind,src=.,dst=/www \
49
+ --network host \
50
+ unit
45
51
```
46
52
47
53
For a description of image tags, see the
48
54
[ docs] ( https://unit.nginx.org/installation/#docker-images ) .
49
55
50
56
57
+ Your current working directory will now be mounted to the Unit image at ` /www ` .
58
+ You can reach its socket at ` /tmp/unit-control/control.unit.sock ` assuming no
59
+ further customizations have been made.
60
+
51
61
### Amazon Linux, Fedora, Red Hat
52
62
53
63
``` console
@@ -71,6 +81,15 @@ $ wget https://raw.githubusercontent.com/nginx/unit/master/tools/setup-unit && c
71
81
For details and available language packages, see the
72
82
[ docs] ( https://unit.nginx.org/installation/#official-packages ) .
73
83
84
+ ## Configuration
85
+
86
+ NGINX Unit provides a RESTful API for dynamic configuration.
87
+ See the [ control API documentation] ( https://unit.nginx.org/controlapi/ )
88
+ for more information on what endpoints are available and how to use them.
89
+
90
+
91
+ For full details of configuration management, see the
92
+ [ docs] ( https://unit.nginx.org/configuration/#configuration-management ) .
74
93
75
94
## Running a Hello World App
76
95
@@ -161,8 +180,10 @@ Unit's output should contain both snippets, neatly organized:
161
180
}
162
181
```
163
182
164
- For full details of configuration management, see the
165
- [ docs] ( https://unit.nginx.org/configuration/#configuration-management ) .
183
+ ## WebAssembly
184
+ Unit supports running WebAssembly Components (WASI 0.2).
185
+ For more information see the
186
+ [ Unit Configuration Docs] ( https://unit.nginx.org/configuration/#configuration-wasm ) .
166
187
167
188
## OpenAPI Specification
168
189
0 commit comments