-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapplication.conf
More file actions
111 lines (93 loc) · 2.88 KB
/
application.conf
File metadata and controls
111 lines (93 loc) · 2.88 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
dataExplorer {
baseUrl = "http://localhost:9000"
baseUrl = ${?DATA_EXPLORER_BASE_URL}
tables {
# here you can define the tables that will be displayed in the data explorer with their
# respective configuration
users {
tableName = "users"
primaryKeyField = "user_id"
hiddenColumns = ["password", "email"]
nonEditableColumns = ["user_id", "email", "created_at", "verified_on", "name"]
canBeDeleted = false
filterableColumns = ["name", "last_name"]
createFilter {
requiredColumns = ["name", "email", "password"]
nonRequiredColumns = ["last_name"]
}
}
userLogs {
tableName = "user_logs"
primaryKeyField = "user_log_id"
nonEditableColumns = ["user_log_id", "user_id", "created_at"]
canBeDeleted = true
filterableColumns = ["user_id"]
createFilter {
requiredColumns = ["user_id", "message"]
}
referenceDisplayField = "email"
}
images {
tableName = "images"
primaryKeyField = "image_id"
nonEditableColumns = ["image_id", "created_at"]
canBeDeleted = false
createFilter {
requiredColumns = ["name", "data"]
}
}
}
}
# https://www.playframework.com/documentation/latest/Configuration
play.i18n.langs = ["en"]
play.filters.hosts {
allowed = ["localhost", "localhost:9000", "127.0.0.1:9000"]
allowed += ${?APP_ALLOWED_HOST_1}
allowed += ${?APP_ALLOWED_HOST_2}
}
play.http {
secret.key = "this doesn't matter no sessions are being used"
secret.key = ${?PLAY_APPLICATION_SECRET}
errorHandler = "play.api.http.JsonHttpErrorHandler"
}
play.filters.disabled += "play.filters.csrf.CSRFFilter"
play.filters.enabled += "play.filters.cors.CORSFilter"
db.default {
driver = "org.postgresql.Driver"
host = "localhost:5432"
database = "vacation_tracker_db"
username = "postgres"
password = "postgres"
host = ${?POSTGRES_HOST}
database = ${?POSTGRES_DATABASE}
username = ${?POSTGRES_USERNAME}
password = ${?POSTGRES_PASSWORD}
url = "jdbc:postgresql://"${db.default.host}"/"${db.default.database}
}
# Number of database connections
# See https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing
fixedConnectionPool = 9
play.db {
prototype {
hikaricp.minimumIdle = ${fixedConnectionPool}
hikaricp.maximumPoolSize = ${fixedConnectionPool}
}
}
# Job queue sized to HikariCP connection pool
database.dispatcher {
executor = "thread-pool-executor"
throughput = 1
thread-pool-executor {
fixed-pool-size = ${fixedConnectionPool}
}
}
blocking.dispatcher {
executor = "thread-pool-executor"
throughput = 1
thread-pool-executor {
// very high bound to process lots of blocking operations concurrently
fixed-pool-size = 5000
}
}
play.modules.enabled += "net.wiringbits.spra.admin.modules.ExecutorsModule"
play.modules.enabled += "net.wiringbits.spra.admin.modules.ConfigModule"