Skip to content

Commit fe432a5

Browse files
committedDec 26, 2022
Update environment variables
1 parent 1baebe5 commit fe432a5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎doc/environment-variables.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ The given value determines the backend (potentia remote/reveres hosts) for the m
349349
* **Var type:** `string`
350350
* **Requires:** `MAIN_VHOST_ENABLE=1`
351351
352-
You can configure a remote backend via this environment variable. Either a remote PHP-FPM server or any kind of service via `http` or `https` reverse proxy.
352+
You can configure a remote backend via this environment variable. Either a remote PHP-FPM server or any kind of service via `http`, `https`, `ws`, or `wss` reverse proxy (where `ws` and `wss` are for websocket backends).
353353
354354
### String format
355355
@@ -369,7 +369,7 @@ The backend environment variable supports two different formats.
369369
With the direct configuration you set everything explicitly via this environment variable and nothing else is required.
370370
371371
* **`<type>`**: `phpfpm` or `rproxy`
372-
* **`<protocol>`**: `tcp`, `http` or `https`
372+
* **`<protocol>`**: `tcp`, `http`, `https`, `ws` or `wss`
373373
* **`<host>`**: the address of upstream host to send requests to (`hostname`, `IPv4` or `IPv6`).
374374
* **`<port>`**: the port of the upstream host to send requests to
375375
@@ -378,6 +378,8 @@ With the direct configuration you set everything explicitly via this environment
378378
MAIN_VHOST_BACKEND=conf:phpfpm:tcp:10.0.0.1:9000
379379
MAIN_VHOST_BACKEND=conf:rproxy:http:10.0.0.1:3000
380380
MAIN_VHOST_BACKEND=conf:rproxy:https:10.0.0.1:3000
381+
MAIN_VHOST_BACKEND=conf:rproxy:ws:10.0.0.1:3000
382+
MAIN_VHOST_BACKEND=conf:rproxy:wss:10.0.0.1:3000
381383
```
382384
383385
When specifying `phpfpm`, the vhost will also automatically be configured for serving PHP files. (including `index.php` for its directory index).

0 commit comments

Comments
 (0)
Please sign in to comment.