mirror of
				https://github.com/wazuh/wazuh-docker.git
				synced 2025-10-31 03:53:33 +00:00 
			
		
		
		
	Add SSL_CERTIFICATE and SSL_KEY support to config-filebeat
This commit is contained in:
		| @@ -30,6 +30,16 @@ if [ "$SSL_CERTIFICATE_AUTHORITIES" != "" ]; then | |||||||
|   sed -i "s|#ssl.certificate_authorities:.*|ssl.certificate_authorities: ['$SSL_CERTIFICATE_AUTHORITIES']|g" /etc/filebeat/filebeat.yml |   sed -i "s|#ssl.certificate_authorities:.*|ssl.certificate_authorities: ['$SSL_CERTIFICATE_AUTHORITIES']|g" /etc/filebeat/filebeat.yml | ||||||
| fi | fi | ||||||
|  |  | ||||||
|  | if [ "$SSL_CERTIFICATE" != "" ]; then | ||||||
|  |   >&2 echo "Configuring SSL Certificate." | ||||||
|  |   sed -i "s|#ssl.certificate:.*|ssl.certificate: ['$SSL_CERTIFICATE']|g" /etc/filebeat/filebeat.yml | ||||||
|  | fi | ||||||
|  |  | ||||||
|  | if [ "$SSL_KEY" != "" ]; then | ||||||
|  |   >&2 echo "Configuring SSL Key." | ||||||
|  |   sed -i "s|#ssl.key:.*|ssl.key: ['$SSL_KEY']|g" /etc/filebeat/filebeat.yml | ||||||
|  | fi | ||||||
|  |  | ||||||
|  |  | ||||||
| chmod go-w /etc/filebeat/filebeat.yml || true | chmod go-w /etc/filebeat/filebeat.yml || true | ||||||
| chown root: /etc/filebeat/filebeat.yml || true | chown root: /etc/filebeat/filebeat.yml || true | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user