mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-03 05:23:16 +00:00
35 lines
860 B
Markdown
35 lines
860 B
Markdown
|
|
### Enable SSL Traffic
|
|
|
|
Our Nginx config has SSL enabled by default, but it does require you to provide your certificate first, copy here your certificate files as `kibana-access.pem` and `kibana-access.key`.
|
|
|
|
The final tree should be like this:
|
|
|
|
```
|
|
nginx_conf/
|
|
├── kibana.htpasswd
|
|
├── kibana-web.conf
|
|
└── ssl
|
|
├── kibana-access.key
|
|
└── kibana-access.pem
|
|
```
|
|
|
|
|
|
|
|
#### Using a Self Signed Certificate
|
|
|
|
In case you want to use a self-signed certificate we provided a script to generate one.
|
|
|
|
Execute `bash generate-self-signed-cert.sh` inside the `ssl` directory and it will be generated. You must install `openssl` first.
|
|
|
|
|
|
### Setup Basic Authentication
|
|
|
|
The nginx configuration expects the file `kibana.htpasswd`.
|
|
|
|
This file can be generated with the `htpasswd` command.
|
|
|
|
```bash
|
|
htpasswd -c kibana.htpasswd username
|
|
```
|