-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
121 lines (111 loc) · 2.72 KB
/
config.yml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
postgres:
db: ""
user: ""
password: ""
host: "postgres"
port: 5432
server:
production: false
logfile: ""
port: 8080
handler_timeout_in_seconds: 5
shutdown_timeout_in_seconds: 6
auth:
ecdsa_signing_key_base64: "" # $ base64 -w 0 ecdsa-private-key.pem
expire_in_secs:
jwt: 600 # 10 minutes
refresh: 2592000 # 30 days
elasticsearch:
url: "http://elasticsearch:9200"
index:
movies: "movies"
serieses: "serieses"
minio:
url: "minio:9000"
root_user: ""
root_password: ""
bucket:
image:
name: "img"
supported_types:
- "image/webp"
- "image/png"
- "image/jpeg"
category:
user: "user"
series: "series"
movie: "movie"
filename:
user: "avatar"
series: "poster"
movie: "poster"
validation:
anchored_fields:
text_min_length: &text_min_length 3
date: &date
min_value:
year: 1850
month: 1
day: 1
name: &name
min_length: *text_min_length
max_length: 20
bio: &bio
min_length: *text_min_length
max_length: 500
title: &title
min_length: *text_min_length
max_length: 100
descriptions: &descriptions
min_length: *text_min_length
max_length: 500
number: &number
max_value: 1000
pagination:
page:
min_value: 1 # should be either 0 or 1
page_size:
default_value: 100
min_value: 1
max_value: 1000
request:
search:
query:
min_length: *text_min_length
max_length: 200
invalidation:
min_length: 10
max_length: 100
array:
max_length: 1000
body:
max_length_in_kb: 1024
user:
email:
min_length: 8
max_length: 40
password:
min_length: 8
max_length: 40
required_numbers: 2
required_lower_letters: 2
required_upper_letters: 2
required_special_chars: 1
first_name: *name
last_name: *name
bio: *bio
birthdate: *date
film:
title: *title
descriptions: *descriptions
date_released: *date
duration:
min_length: 60
max_length: 100000
episode_number: *number
season_number: *number
series:
title: *title
descriptions: *descriptions
date_started: *date
date_ended: *date