-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
69 lines (61 loc) · 1.77 KB
/
config.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
default:
postgres:
database: !ENV ${POSTGRES_DB}
user: !ENV ${POSTGRES_USER}
password: !ENV ${POSTGRES_PASSWORD}
host: !ENV ${POSTGRES_HOST}
port: !ENV ${POSTGRES_PORT}
redis:
host: !ENV ${REDIS_HOST}
port: !ENV ${REDIS_PORT:int}
colorific:
allowed_image_content_types:
- image/jpeg
- image/png
cors_allow_origin: !ENV ${CORS_ALLOW_ORIGIN}
http_client_retrying_max_attempts: 5
http_client_retrying_wait_time: 3
http_client_timeout: 30
image_indexing: !ENV ${IMAGE_INDEXING:bool}
image_indexing_cyclic: true
image_indexing_interval_sec: 600
image_indexing_rewrite_existing: false
image_max_size_bytes: 5242880 # 5 Mb
image_max_height: 8000
image_max_width: 8000
image_min_height: 50
image_min_width: 50
pool_exec_size: 2
rate_limit:
color_extraction_concurrency: 20
color_extraction_ip_time_interval: 300
color_extraction_ip_limit: 10
image_search_ip_time_interval: 60
image_search_ip_limit: 15
unsplash:
access_key: !ENV ${UNSPLASH_API_ACCESS_KEY}
end_page: 300
images_per_page: 30
start_page: 1
test:
postgres:
database: !ENV ${POSTGRES_TEST_DB}
user: !ENV ${POSTGRES_TEST_USER}
password: !ENV ${POSTGRES_TEST_PASSWORD}
host: !ENV ${POSTGRES_TEST_HOST}
port: !ENV ${POSTGRES_TEST_PORT}
colorific:
http_client_retrying_max_attempts: 2
http_client_retrying_wait_time: 0.5
http_client_timeout: 1
image_indexing: false
image_max_size_bytes: 1500000
image_max_height: 1000
image_max_width: 1000
pool_exec_size: 1
rate_limit:
color_extraction_concurrency: 3
color_extraction_ip_time_interval: 2
color_extraction_ip_limit: 3
image_search_ip_time_interval: 2
image_search_ip_limit: 3