Completed for a grade of three

This commit is contained in:
2026-10-23 14:11:11 +03:00
parent a3dbcd6ba4
commit 92c2fdc254
54 changed files with 1221 additions and 92 deletions
+36
View File
@@ -28,6 +28,9 @@ database {
maxPoolSize = ${?DB_MAX_POOL_SIZE}
connectionTimeoutMs = 2000
statementTimeoutMs = 5000
# Replicas run with false: compose applies migrations once in the `migrate` service.
migrateOnStart = true
migrateOnStart = ${?DB_MIGRATE_ON_START}
}
redis {
@@ -41,6 +44,39 @@ redis {
commandTimeoutMs = 500
}
cors {
# Defaults to false
#allowAnyHost = true
# Swagger UI sends "Try it out" to the contract server http://localhost:8080; pages opened elsewhere need these.
allowedHosts = [
{ host = "localhost:8080", schemes = ["http"] }
{ host = "localhost:8081", schemes = ["http"] }
{ host = "127.0.0.1:8080", schemes = ["http"] }
{ host = "127.0.0.1:8081", schemes = ["http"] }
]
# Defaults to true
#allowAnyMethod = true
#allowedMethods = [GET, POST, PATCH, PUT, DELETE, OPTIONS]
allowAnyHeader = true
#allowedHeaders = []
exposedHeaders = [X-Request-Id, X-Instance-Id, WWW-Authenticate]
# Browsers send Origin on same-origin POST too, e.g. Swagger UI served by the API itself.
allowSameOrigin = true
}
instance {
id = ${?INSTANCE_ID}
}
messages {
idempotencyTtlSeconds = 86400
idempotencyTtlSeconds = ${?IDEMPOTENCY_TTL_SECONDS}
}
authentication {
realm = "messenger"
sessionTtlSeconds = 3600