|
|
|
@ -17,7 +17,7 @@ trusted_proxies = {% for host in graylog_http_src_ip %}{{ host }}{% if not host |
|
|
|
|
elasticsearch_hosts = {{ graylog_es_hosts | join(',') }} |
|
|
|
|
elasticsearch_cluster_name = {{ graylog_es_cluster_name | default('elasticsearch') }} |
|
|
|
|
{% if graylog_mongo_pass is defined and graylog_mongo_pass != False and graylog_mongo_url | length == 1 %} |
|
|
|
|
mongodb_uri = {% for url in graylog_mongo_url %}{{ url | urlsplit('scheme') }}://{{ graylog_mongo_user }}:{{ graylog_mongo_pass | urlencode | regex_replace('/','%2F') }}@{{ url | urlsplit('hostname') }}{% if url | urlsplit('port') %}:{{ url | urlsplit('port') }}{% endif %}{{ url | urlsplit('path') }}{{ url | urlsplit('query') }}{% if not loop.last %},{% endif %} |
|
|
|
|
mongodb_uri = {% for url in graylog_mongo_url %}{{ url | urlsplit('scheme') }}://{{ graylog_mongo_user }}:{{ graylog_mongo_pass | urlencode | regex_replace('/','%2F') }}@{{ url | urlsplit('hostname') }}{% if url | urlsplit('port') %}:{{ url | urlsplit('port') }}{% endif %}{{ url | urlsplit('path') }}?{{ url | urlsplit('query') }}{% if not loop.last %},{% endif %} |
|
|
|
|
{% endfor %} |
|
|
|
|
{% else %} |
|
|
|
|
mongodb_uri = {{ graylog_mongo_url | join(',') }} |
|
|
|
|