-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.toml
More file actions
34 lines (28 loc) · 1.21 KB
/
config.toml
File metadata and controls
34 lines (28 loc) · 1.21 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
###############################################################################
# Database configuration
# Connection string is in Go pq driver format:
# host=localhost user=postgres password=2951 dbname=go_backend_uni port=5432 sslmode=disable
[database]
connection_string = "host=localhost user=postgres password=2951 dbname=go_backend_uni port=5432 sslmode=disable"
max_idle_connections = 5
max_open_connections = 20
connection_max_lifetime = "60s"
driver_name = "postgres"
###############################################################################
# HTTP server configuration
[http]
server_address = ":8080"
cors_origin = "http://127.0.0.1:5173"
cors_methods = "GET, POST, PATCH, DELETE, OPTIONS"
cors_headers = "Authorization, Origin, Content-Type, Cookie, X-CSRF-Token, Access-Control-Allow-Headers, Origin,Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers"
cors_credentials = "true"
secrete_key = "secrete-key"
session = "mysession"
store = "secrete"
###############################################################################
# Redis
[redis]
addr = "localhost:6379"
password = ""
DB = 0
###############################################################################