docs(installation): add docs about EMBEDDED env var (#9526)

This commit is contained in:
Vladimír Gorej
2024-01-29 11:01:10 +01:00
committed by GitHub
parent 0eddc1563b
commit 0b34548380

View File

@@ -103,6 +103,16 @@ You can specify an IPv6 port via `PORT_IPV6` variable. By default, IPv6 port is
docker run -p 80:80 -e PORT_IPV6=8080 swaggerapi/swagger-ui
```
You can allow/disallow [embedding](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) via `EMBEDDING` variable. By default, embedding is disabled.
```sh
docker run -p 80:80 -e EMBEDDING=true swaggerapi/swagger-ui
```
```sh
docker run -p 80:80 -e PORT_IPV6=8080 swaggerapi/swagger-ui
```
For more information on controlling Swagger UI through the Docker image, see the Docker section of the [Configuration documentation](configuration.md#docker).
### unpkg