Libraries refactor and add some sinks #4
|
@ -8,6 +8,10 @@ from string import ascii_uppercase
|
||||||
from elasticsearch import Elasticsearch
|
from elasticsearch import Elasticsearch
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
# TODO: secure ES traffic properly
|
||||||
|
import urllib3
|
||||||
|
urllib3.disable_warnings()
|
||||||
|
|
||||||
# Project imports
|
# Project imports
|
||||||
from settings import settings
|
from settings import settings
|
||||||
from db import r
|
from db import r
|
||||||
|
@ -29,7 +33,7 @@ class Transactions(object):
|
||||||
f"https://{settings.ES.Host}:9200",
|
f"https://{settings.ES.Host}:9200",
|
||||||
verify_certs=False,
|
verify_certs=False,
|
||||||
basic_auth=(settings.ES.Username, settings.ES.Pass),
|
basic_auth=(settings.ES.Username, settings.ES.Pass),
|
||||||
ssl_assert_fingerprint=("6b264fd2fd107d45652d8add1750a8a78f424542e13b056d0548173006260710"),
|
#ssl_assert_fingerprint=("6b264fd2fd107d45652d8add1750a8a78f424542e13b056d0548173006260710"),
|
||||||
ca_certs="certs/ca.crt",
|
ca_certs="certs/ca.crt",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue