-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
executable file
·40 lines (29 loc) · 1.33 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import os
from dotenv import load_dotenv
load_dotenv()
elasticsearch_host = [os.getenv("elasticsearch_host")]
elasticsearch_verify_certs = os.getenv("elasticsearch_verify_certs") == "True"
elasticsearch_index = os.getenv("elasticsearch_index")
elasticsearch_shards = int(os.getenv("elasticsearch_shards"))
elasticsearch_replicas = int(os.getenv("elasticsearch_replicas"))
milvus_host = os.getenv("milvus_host")
milvus_port = os.getenv("milvus_port")
milvus_pool_size = int(os.getenv("milvus_pool_size"))
milvus_collection_name = os.getenv("milvus_collection_name")
phash_size = int(os.getenv("phash_size"))
phash_size_result = int(os.getenv("phash_size_result"))
images_path = os.getenv("images_path")
short_path = os.getenv("short_path")
MYSQL_HOST = os.getenv("MYSQL_HOST")
MYSQL_PORT = os.getenv("MYSQL_PORT")
MYSQL_DATABASE = os.getenv("MYSQL_DATABASE")
MYSQL_USER = os.getenv("MYSQL_USER")
MYSQL_PASSWORD = os.getenv("MYSQL_PASSWORD")
MYSQL_ROOT_PASSWORD = os.getenv("MYSQL_ROOT_PASSWORD")
REDIS_HOST = os.getenv("REDIS_HOST")
REDIS_PORT = os.getenv("REDIS_PORT")
TENSORFLOW_SERVING_MODEL_ADDRESS = os.getenv("TENSORFLOW_SERVING_MODEL_ADDRESS")
INITIALIZE_DBS_IF_NOT_EXIST = bool(os.getenv("INITIALIZE_DBS_IF_NOT_EXIST"))
# Scrapers
FURAFFINITY_COOKIE_A = os.getenv("FURAFFINITY_COOKIE_A")
FURAFFINITY_COOKIE_B = os.getenv("FURAFFINITY_COOKIE_B")