forked from nekobin/nekobin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
39 lines (34 loc) · 947 Bytes
/
config.yaml
File metadata and controls
39 lines (34 loc) · 947 Bytes
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
# Main configuration
nekobin:
# Host and port nekobin will bind to
host: "0.0.0.0"
port: 5000
# Maximum length for title, author and content
max_title_length: 32
max_author_length: 32
max_content_length: 65536
# Postgres database configuration
database:
# Connection string
uri: "postgres://ghkfyppsetstod:521553973ab540c67cf69ce204d53bb96b25fe3b5e6d66c315930047cf904fed@ec2-54-247-169-129.eu-west-1.compute.amazonaws.com:5432/dfg6m9o9354m5i"
# Advanced connection pool settings
max_idle_conns: 5
max_open_conns: 20
conn_max_lifetime: 1800
# Endpoints limits. Maximum requests over period (in seconds)
limits:
documents:
# GET /api/documents/:key and GET /raw/:key
get:
- amount: 20
period: 5
- amount: 10000
period: 86400
# POST /api/documents
post:
- amount: 10
period: 60
- amount: 20
period: 3600
- amount: 50
period: 86400