Remove https nginx configuration

This commit is contained in:
vcerenu
2022-03-29 14:25:15 -03:00
parent e7065fc52b
commit 3d0c356be9
2 changed files with 2 additions and 23 deletions

View File

@@ -140,6 +140,8 @@ services:
image: wazuh/wazuh-dashboard:4.3.0
hostname: wazuh.dashboard
restart: always
ports:
- 443:443
environment:
- OPENSEARCH_HOSTS="https://wazuh1.indexer:9200"
- WAZUH_API_URL="https://wazuh.master"
@@ -162,8 +164,6 @@ services:
hostname: nginx
restart: always
ports:
- "80:80"
- "443:443"
- "1514:1514"
depends_on:
- wazuh.master

View File

@@ -28,27 +28,6 @@ http {
server_tokens off;
gzip on;
# Dashboard UI
server {
listen 80;
listen [::]:80;
return 301 https://$host:443$request_uri;
}
server {
listen 443 default_server ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/nginx/ssl/cert.pem;
ssl_certificate_key /etc/nginx/ssl/key.pem;
location / {
proxy_pass https://wazuh.dashboard:443/;
proxy_ssl_verify off;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
}
}
}