|
@@ -0,0 +1,139 @@
|
|
|
+# This is the main configuration file for the application.
|
|
|
+# ~~~~~
|
|
|
+
|
|
|
+# Secret key
|
|
|
+# ~~~~~
|
|
|
+# The secret key is used to secure cryptographics functions.
|
|
|
+# If you deploy your application to several instances be sure to use the same key!
|
|
|
+application.secret = "x09HY<acN5Wph?e]@:rXeF>qDg=fC;d5rRbYqeG/rLUyyEZCh/d_L73>IVxT@?Mb"
|
|
|
+
|
|
|
+# The application languages
|
|
|
+# ~~~~~
|
|
|
+application.langs = "ru,en"
|
|
|
+
|
|
|
+# Proxy and `X-Forwarded-For` header
|
|
|
+# ~~~~~
|
|
|
+#trustxforwarded=true
|
|
|
+
|
|
|
+# Akka
|
|
|
+# ~~~~~
|
|
|
+internal {
|
|
|
+ akka {
|
|
|
+ loglevel = "DEBUG"
|
|
|
+ loggers = ["akka.event.slf4j.Slf4jLogger"]
|
|
|
+ debug.receive = on
|
|
|
+ actor {
|
|
|
+ provider = "akka.remote.RemoteActorRefProvider" # ignored if internal.communication = 'socket'
|
|
|
+ }
|
|
|
+ remote { # ignored if internal.communication = 'socket'
|
|
|
+ enabled-transports = ["akka.remote.netty.tcp"]
|
|
|
+ shutdown-timeout = 2 s
|
|
|
+ watch-failure-detector.heartbeat-interval = 20 s
|
|
|
+ netty.tcp {
|
|
|
+ port = 2551
|
|
|
+ hostname = 0.0.0.0
|
|
|
+ send-buffer-size = 10 MiB
|
|
|
+ receive-buffer-size = 10 MiB
|
|
|
+ maximum-frame-size = 10 MiB
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ # communication settings
|
|
|
+ communication {
|
|
|
+ type = "socket" # `socket` or `remote`(default)
|
|
|
+ # Leader
|
|
|
+ admin.hostname = ${ADMIN_HOST}
|
|
|
+ admin.port = 2551
|
|
|
+
|
|
|
+ # Node
|
|
|
+ local.hostname = 0.0.0.0
|
|
|
+ local.port = 2552
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+# Application defined parameters
|
|
|
+# ~~~~~
|
|
|
+auth.cookie.secure = false
|
|
|
+
|
|
|
+# Database configuration
|
|
|
+# ~~~~~
|
|
|
+# DB plugin is disabled by default. It will be configured on the application startup.
|
|
|
+# Don't change it.
|
|
|
+dbplugin = disabled
|
|
|
+
|
|
|
+# MongoDB
|
|
|
+# one host or list of hosts in replica sets
|
|
|
+# ~~~~~~~
|
|
|
+mongodb {
|
|
|
+ host = ${DB_CLUSTER}
|
|
|
+ # Database name
|
|
|
+ # You can optional set db name, otherwise used `portaldb`
|
|
|
+ main.db = "prod"
|
|
|
+ billing.db = "billing"
|
|
|
+ keepAlive = 100
|
|
|
+ connectTimeoutMS = 30000
|
|
|
+}
|
|
|
+
|
|
|
+# SDS Specific parameters
|
|
|
+# ~~~~~
|
|
|
+sds.api {
|
|
|
+ # Use short living cache for procedure calls.
|
|
|
+ cache.use = ${CACHE_USE}
|
|
|
+ # Set time to live for a procedure call cache in seconds. Defualt is 10 sec.
|
|
|
+ cache.timeout = 5 # seconds
|
|
|
+ # The list of included cacheable procedures.
|
|
|
+ # If commented or empty, all calls will be cached except ones listened in the `cache.excluded` section
|
|
|
+ # cache.include = [GET_DEPARTMENT_LIST]
|
|
|
+ # The list of cacheable procedures to be excluded
|
|
|
+ # cache.exclude = [GET_FILIAL_LIST]
|
|
|
+}
|
|
|
+
|
|
|
+# WS configuration currently used in SDS communication
|
|
|
+# ~~~~~
|
|
|
+ws.timeout {
|
|
|
+ connection = 20000
|
|
|
+ request = 20000
|
|
|
+ report = 60000
|
|
|
+}
|
|
|
+ws.acceptAnyCertificate = true
|
|
|
+
|
|
|
+# MMT Api settings
|
|
|
+# ~~~~~
|
|
|
+mmt {
|
|
|
+ # in seconds
|
|
|
+ timeout = 25
|
|
|
+}
|
|
|
+
|
|
|
+# Play static assets
|
|
|
+# ~~~~~
|
|
|
+assets.defaultCache = "max-age=604800" # 1 week
|
|
|
+
|
|
|
+# Customer Assets
|
|
|
+# ~~~~~
|
|
|
+customer.assets {
|
|
|
+ defaultCache = 3600 # 1 hour
|
|
|
+ # Loading asstes from <>.
|
|
|
+ # You can use either `local` or db` . In production environment we usally use `db` mode
|
|
|
+ loading.mode = "db"
|
|
|
+}
|
|
|
+
|
|
|
+# ESIA
|
|
|
+# ~~~~~
|
|
|
+# Test SSO url:
|
|
|
+esia.sso.url = "https://esia.gosuslugi.ru/idp/profile/SAML2/Redirect/SSO"
|
|
|
+# Test SLO url:
|
|
|
+esia.slo.url = "https://esia.gosuslugi.ru/idp/profile/SAML2/Redirect/SLO"
|
|
|
+# Use or not global saml2 logout.
|
|
|
+esia.slo.use = true
|
|
|
+# ~~~~
|
|
|
+# OAUTH2
|
|
|
+esia.oauth2.globalLogout.use = false
|
|
|
+esia.oauth2.isProd = true
|
|
|
+
|
|
|
+# Yandex.Kassa
|
|
|
+# ~~~~~
|
|
|
+yandex.kassa.processingUrl = "https://demomoney.yandex.ru/eshop.xml"
|
|
|
+
|
|
|
+telemedicine {
|
|
|
+ secret = "a-5u=I|4a@Ie]XZxi+I'=yOi^fiX1mF_<tELx23V&]P[{X'pZa.@9;&-s/YdRR9"
|