Skip to content

Commit bffb934

Browse files
committed
Update environment variables
1 parent b4e0694 commit bffb934

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

doc/environment-variables.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ The given value determines the backend (potentia remote/reveres hosts) for the m
348348
* **Var type:** `string`
349349
* **Requires:** `MAIN_VHOST_ENABLE=1`
350350
351-
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.
351+
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).
352352
353353
### String format
354354
@@ -368,7 +368,7 @@ The backend environment variable supports two different formats.
368368
With the direct configuration you set everything explicitly via this environment variable and nothing else is required.
369369
370370
* **`<type>`**: `phpfpm` or `rproxy`
371-
* **`<protocol>`**: `tcp`, `http` or `https`
371+
* **`<protocol>`**: `tcp`, `http`, `https`, `ws` or `wss`
372372
* **`<host>`**: the address of upstream host to send requests to (`hostname`, `IPv4` or `IPv6`).
373373
* **`<port>`**: the port of the upstream host to send requests to
374374
@@ -377,6 +377,8 @@ With the direct configuration you set everything explicitly via this environment
377377
MAIN_VHOST_BACKEND=conf:phpfpm:tcp:10.0.0.1:9000
378378
MAIN_VHOST_BACKEND=conf:rproxy:http:10.0.0.1:3000
379379
MAIN_VHOST_BACKEND=conf:rproxy:https:10.0.0.1:3000
380+
MAIN_VHOST_BACKEND=conf:rproxy:ws:10.0.0.1:3000
381+
MAIN_VHOST_BACKEND=conf:rproxy:wss:10.0.0.1:3000
380382
```
381383
382384
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)