Fixes #88 - Allow specifying X-FRAME-OPTIONS with an environment variable (#89)

This commit is contained in:
jc21
2019-03-04 10:16:46 +10:00
committed by GitHub
parent aad9ecde6b
commit 6f1d38a0e2
3 changed files with 27 additions and 3 deletions

View File

@ -143,3 +143,23 @@ Password: changeme
```
Immediately after logging in with this default user you will be asked to modify your details and change your password.
### Advanced Options
#### X-FRAME-OPTIONS Header
You can configure the [`X-FRAME-OPTIONS`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) header
value by specifying it as a Docker environment variable. The default if not specified is `deny`.
```yml
...
environment:
X_FRAME_OPTIONS: "sameorigin"
...
```
```
... -e "X_FRAME_OPTIONS=sameorigin" ...
```