Skip to content

Commit 967b843

Browse files
committed
♻️ refactor: updated codebase #2
1 parent aaf625e commit 967b843

File tree

2 files changed

+178
-176
lines changed

2 files changed

+178
-176
lines changed

config/conf-dev.yaml

Lines changed: 89 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ server:
2727
idle: 10s
2828
attr:
2929
max_header_bytes: 1048576
30+
timezone: Asia/Ho_Chi_Minh
3031
# ################################
3132
# Mongodb Config
3233
# 2023-11-05 10:48:54
@@ -130,18 +131,18 @@ redis:
130131
cors:
131132
enabled: false
132133
allowed-origins:
133-
- '*'
134+
- "*"
134135
allowed-methods:
135-
- GET
136-
- POST
137-
- PUT
138-
- DELETE
139-
- OPTIONS
136+
- GET
137+
- POST
138+
- PUT
139+
- DELETE
140+
- OPTIONS
140141
allowed-headers:
141-
- Origin
142-
- Accept
143-
- Content-Type
144-
- Authorization
142+
- Origin
143+
- Accept
144+
- Content-Type
145+
- Authorization
145146
exposed-headers: []
146147
allow-credentials: true
147148
max-age: 3600
@@ -164,106 +165,106 @@ cookie:
164165
# 2023-11-05 10:48:54
165166
# ################################
166167
telegram-seekers:
167-
- key: tenant_1
168-
usable_default: true
169-
config:
170-
enabled: false
171-
debug_mode: false
172-
chat_id:
173-
- 123456789
174-
token: <token_here>
175-
option:
176-
type: Markdown
177-
max-retries: 2
168+
- key: tenant_1
169+
usable_default: true
170+
config:
171+
enabled: false
172+
debug_mode: false
173+
chat_id:
174+
- 123456789
175+
token: <token_here>
176+
option:
177+
type: Markdown
178+
max-retries: 2
178179
# ################################
179180
# Slack Seekers Config
180181
# 2023-11-05 10:48:54
181182
# ################################
182183
slack-seekers:
183-
- key: tenant_1
184-
usable_default: true
185-
config:
186-
enabled: false
187-
debug_mode: false
188-
channel_id:
189-
- "123456789"
190-
token: <token-here>
191-
option:
192-
max-retries: 0
184+
- key: tenant_1
185+
usable_default: true
186+
config:
187+
enabled: false
188+
debug_mode: false
189+
channel_id:
190+
- "123456789"
191+
token: <token-here>
192+
option:
193+
max-retries: 0
193194
# ################################
194195
# Mongodb Seekers Config
195196
# 2023-11-05 10:48:54
196197
# ################################
197198
mongodb-seekers:
198-
- key: tenant_1
199-
usable_default: false
200-
config:
201-
enabled: false
202-
debug_mode: false
203-
url_conn: mongodb://127.0.0.1:27017/u_db
204-
host: 127.0.0.1
205-
port: 27017
206-
database: u_db
207-
username: u@root
208-
password: pwd
209-
timeout_second_conn: 30
210-
allow_conn_sync: true
211-
timeout: 10s
212-
option: {}
199+
- key: tenant_1
200+
usable_default: false
201+
config:
202+
enabled: false
203+
debug_mode: false
204+
url_conn: mongodb://127.0.0.1:27017/u_db
205+
host: 127.0.0.1
206+
port: 27017
207+
database: u_db
208+
username: u@root
209+
password: pwd
210+
timeout_second_conn: 30
211+
allow_conn_sync: true
212+
timeout: 10s
213+
option: {}
213214
# ################################
214215
# MySQL Seekers Config
215216
# 2023-11-05 10:48:54
216217
# ################################
217218
mysql-seekers:
218-
- key: tenant_1
219-
usable_default: false
220-
config:
221-
enabled: false
222-
debug_mode: false
223-
database: u_db
224-
host: 127.0.0.1
225-
port: 3306
226-
username: u@root
227-
password: pwd
228-
max-open-conn: 10
229-
max-idle-conn: 2
230-
max-life-time-minutes-conn: 10
231-
option: {}
219+
- key: tenant_1
220+
usable_default: false
221+
config:
222+
enabled: false
223+
debug_mode: false
224+
database: u_db
225+
host: 127.0.0.1
226+
port: 3306
227+
username: u@root
228+
password: pwd
229+
max-open-conn: 10
230+
max-idle-conn: 2
231+
max-life-time-minutes-conn: 10
232+
option: {}
232233
# ################################
233234
# Postgres Seekers Config
234235
# 2023-11-05 10:48:54
235236
# ################################
236237
postgres-seekers:
237-
- key: tenant_1
238-
usable_default: false
239-
config:
240-
enabled: false
241-
debug_mode: false
242-
database: u_db
243-
host: 127.0.0.1
244-
port: 5432
245-
username: u@root
246-
password: pwd
247-
ssl-mode: disable
248-
max-open-conn: 5
249-
max-idle-conn: 3
250-
option: {}
238+
- key: tenant_1
239+
usable_default: false
240+
config:
241+
enabled: false
242+
debug_mode: false
243+
database: u_db
244+
host: 127.0.0.1
245+
port: 5432
246+
username: u@root
247+
password: pwd
248+
ssl-mode: disable
249+
max-open-conn: 5
250+
max-idle-conn: 3
251+
option: {}
251252
# ################################
252253
# Cookie Seekers Config
253254
# 2023-11-05 10:48:54
254255
# ################################
255256
cookie-seekers:
256-
- key: tenant_1
257-
usable_default: true
258-
config:
259-
enabled: false
260-
name: user
261-
value: ""
262-
path: /
263-
domain: ""
264-
max_age: 86400
265-
secure: false
266-
http_only: true
267-
timeout: 10s
268-
option:
269-
max_retries: 2
257+
- key: tenant_1
258+
usable_default: true
259+
config:
260+
enabled: false
261+
name: user
262+
value: ""
263+
path: /
264+
domain: ""
265+
max_age: 86400
266+
secure: false
267+
http_only: true
268+
timeout: 10s
269+
option:
270+
max_retries: 2

0 commit comments

Comments
 (0)