-
Notifications
You must be signed in to change notification settings - Fork 5
/
application.conf
92 lines (73 loc) · 2.72 KB
/
application.conf
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
# 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!
# TODO Generate a secret for your app using `sbt playGenerateSecret` and pass it via -Dplay.crypto.secret
play.crypto.secret="jq/juTry18@Zwy3fjUD_@q6Y5n8Ez2V@6dTf]zG@hXGWEBj;2KX>ti/CSTUzkCvz" # -> will crash app on startup in prod mode
# Uncomment this line if you want to set secret via environment vars
play.crypto.secret=${?APPLICATION_SECRET}
# The application languages
# ~~~~~
play.i18n.langs=["en"]
# Application loader class
# ~~~~~
play.application.loader="AppLoader"
# Router
# ~~~~~
# Define the Router object to use for this application.
# This router will be looked up first when the application is starting up,
# so make sure this is the entry point.
# Furthermore, it's assumed your route file is named properly.
# So for an application router like `my.application.Router`,
# you may need to define a router file `conf/my.application.routes`.
# Default to Routes in the root package (and conf/routes)
# application.router=my.application.Routes
# Database configuration
# ~~~~~
# You can declare as many datasources as you want.
# By convention, the default datasource is named `default`
#
# db.default.driver=org.h2.Driver
# db.default.url="jdbc:h2:mem:play"
# db.default.user=sa
# db.default.password=""
# Evolutions
# ~~~~~
# You can disable evolutions if needed
# evolutionplugin=disabled
akka {
loggers = ["akka.event.slf4j.Slf4jLogger"]
}
OAuth2 {
scope {
list=["uid"]
list=${?OAUTH2_SCOPE_LIST}
requestDelimiter=" "
requestDelimiter=${?OAUTH2_SCOPE_REQUEST_DELIMITER}
}
applicationCredentials=["c1:s1"]
applicationCredentials=${?OAUTH2_APPLICATION_CREDENTIALS}
users=["u1:p1"]
users=${?OAUTH2_USERS}
realm="employees"
realm=${?OAUTH2_REALM}
# Allows you to define custom scope data, this is in a key/value form where
# the key is the scope for which the value will be exposed to
customScopeData = []
customScopeData = ${?OAUTH2_CUSTOM_SCOPE_DATA}
# Will skip the consent screen and will assume login with the first available user
# Handy for testing
skipConsent=false
skipConsent=${?OAUTH2_APPLICATION_SKIPCONSENT}
expiration="60 minutes"
expiration=${?OAUTH2_EXPIRATION}
internalRedirectTimeout="5 seconds"
internalRedirectTimeout=${?OAUTH2_INTERNAL_REDIRECT_TIMEOUT}
pendingConsentTimeout="1 minute"
pendingConsentTimeout=${?OAUTH2_PENDING_CONSENT_TIMEOUT}
# Disable all login and consent screens, handy for testing. Will automatically login for the first user in the users List
disableConsent=false
disableConsent=${?OAUTH2_DISABLE_CONSENT}
}