Completed for a grade of four
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
authentication {
|
||||
realm = "messenger"
|
||||
sessionTtlSeconds = 3600
|
||||
sessionCacheTtlSeconds = 60
|
||||
# Collapse concurrent cache misses for one token into a single database lookup
|
||||
sessionCacheSingleFlight = true
|
||||
}
|
||||
|
||||
@@ -6,4 +6,7 @@ database {
|
||||
password = "password"
|
||||
maxPoolSize = 10
|
||||
connectionTimeoutMs = 2000
|
||||
statementTimeoutMs = 5000
|
||||
# A single local process migrates itself; replicas in compose leave it to the `migrate` service
|
||||
migrateOnStart = true
|
||||
}
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
instance {
|
||||
# X-Instance-Id of this process. Defaults to HOSTNAME (the short container id in Docker), else a random alias
|
||||
#id = "dev"
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
messages {
|
||||
# How long a stored Idempotency-Key answers a retry with the original message (contract: at least 24 h)
|
||||
idempotencyTtlSeconds = 86400
|
||||
}
|
||||
@@ -1,6 +1,8 @@
|
||||
redis {
|
||||
redis {
|
||||
host = "localhost"
|
||||
port = 6379
|
||||
# Only if the local Redis requires AUTH
|
||||
#password = ""
|
||||
connectTimeoutMs = 500
|
||||
commandTimeoutMs = 500
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user