-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.yaml
More file actions
52 lines (47 loc) · 1.7 KB
/
Copy pathconf.yaml
File metadata and controls
52 lines (47 loc) · 1.7 KB
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
server:
port: ":2012" #'Sunucu portu
shutdown_timeout: 30s #'Sistem kapanmadan önce istekleri yerine getirmek için bulunan süre
active_level: "dev"
env_path: "./in/devtv.env" #'Env dosyası yolu
database:
max_idle_conns: 25 #'Maksimum boşta açık bağlantı sayısı
max_open_conns: 100 #'Maksimum açık bağlantı sayısı
conn_max_lifetime: 3m #'Bağlantıların maksimum açık kalma süresi
conn_max_idle_time: 30s #'Bağlantıların maksimum boşta açık kalma süresi
middleware:
circuit_breaker:
threshold: 15 #'Kaç hatadan sonra kesileceğini belirleyen sayı
timeout: 30s #'Bağlantının kesileceği süre
rate_limit:
burst: 25 #'Bir IP'nin anlık olarak yapabileceği maksimum istek kapasitesini belirleyen sayı
limit: 50 #'Bir IP'nin saniyede ortalama yapabileceği istek hızını belirleyen sayı
request_timeout: 5m #'İsteklerin timeout olacağı süre
cors:
allow-origins: #'Hangi domainlere izin verdiğimiz
- "https://api.devfestbursa.com"
- "https://www.api.devfestbursa.com"
allowed_methods: #' Hangi metotlara izin verdiğimiz
- "GET"
- "POST"
- "PUT"
- "PATCH"
- "DELETE"
- "OPTIONS"
allowed_headers: #'Hangi headerlara izin verdiğimiz
- "Origin"
- "Content-Type"
- "Authorization"
- "Accept"
expose_headers: #'Hangi headerları gösterdiğimiz
- "Content-Length"
- "Set-Cookie"
allow_credentials: true #'Credentials'a izin veriyo muyuz
max_age: 12h #'
auth:
cookie_domain: "localhost" #'Production: "devfestbursa.com"
cookie_secure: false #'Production: true (HTTPS zorunlu)
token_expiry_days: 30 #'JWT tokenın geçerlilik süresi (gün)
redis:
redis_url: "redis:6379"
redis_pwr: ""
db: 0