Skip to content

Commit 51e4728

Browse files
document environment variables
1 parent 6544d02 commit 51e4728

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,42 @@ INFO wasm_server_runner::server: starting webserver at http://127.0.0.1:1334
3636
```
3737
3838
The website will reload when the server is restarted and serve files relative to the current directory.
39+
40+
## Configuration options
41+
42+
All configuration options can be specified via environment variables.
43+
44+
<details>
45+
<summary>WASM_SERVER_RUNNER_ADDRESS</summary>
46+
47+
Default: `127.0.0.1`
48+
49+
Control the address that the server listens on. Set to `0.0.0.0` to allow access from anywhere.
50+
51+
</details>
52+
53+
<details>
54+
<summary>WASM_SERVER_RUNNER_DIRECTORY</summary>
55+
56+
Default: `.`
57+
58+
Can be used to specify where relative path requests are loaded from.
59+
60+
</details>
61+
62+
<details>
63+
<summary>WASM_SERVER_RUNNER_HTTPS</summary>
64+
65+
Default: `false`
66+
67+
Controls whether https is used.
68+
69+
</details>
70+
71+
<details>
72+
<summary>WASM_SERVER_RUNNER_NO_MODULE</summary>
73+
74+
Default: `false`
75+
76+
Controls whether the wasm-bindgen output uses `module`s or not.
77+
</details>

0 commit comments

Comments
 (0)