Hi everyone,
I need to configure https in ngnix for graylog version 2.3. I have already configured it but I think I have my graylog.server file incorrectly configured because it give me a 503 error in the browser and I don’t know what happens…
can you help me please?
My configuration of Ngnix ;
server
{
listen 443 ssl ;
server_name graylog.dominio.com;
# <- your SSL Settings here!
ssl_certificate /etc/ssl/certs/graylog/graylog.crt ;
ssl_certificate_key /etc/ssl/certs/graylog3/graylos.key;
#ssl_trusted_certificate /etc/ssl/certs/graylog3/graylog.crt;
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
ssl_session_tickets off;
location /
{
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Graylog-Server-URL https://$server_name/api;
proxy_pass http://127.0.0.1:9000;
}
}
My configuration of graylog is ,
###############
HTTP settings
###############
Default: 192.168.2.4
http_bind_address = 192.168.2.4:9000
################
HTTPS settings
################
Enable HTTPS support for the HTTP interface
http_enbale_tls = true
http_tls_cert_file = /etc/ssl/certs/graylog3/graylog.crt
http_tls_key_file = /etc/ssl/certs/graylog3/graylog.key
http_tls_key_password = secret
elasticsearch_max_docs_per_index = 50000000
elasticsearch_max_number_of_indices = 20
retention_strategy = delete
elasticsearch_shards = 4
elasticsearch_replicas = 0
elasticsearch_index_prefix = graylog
allow_leading_wildcard_searches = false
allow_highlighting = false
elasticsearch_analyzer = standard
processor_wait_strategy = blocking
ring_size = 65536
inputbuffer_ring_size = 65536
inputbuffer_processors = 2
inputbuffer_wait_strategy = blocking
lb_recognition_period_seconds = 3
Note :
I think I have problems with my graylog version 2.3.6 configuration file to configure it with https.
ERRO–> 502 Bad Gateway
i need our help, please !!!
Many thanks.