Added support for mail notifications and WIP JIRA export.

This commit is contained in:
Šesták Vít
2016-02-12 19:50:40 +01:00
parent f4fa0ee948
commit 2fb2c3fd72
32 changed files with 728 additions and 51 deletions

View File

@@ -14,12 +14,13 @@ play.crypto.secret = "{{ lookup('password', 'play_secret length=64') }}"
# ~~~~~
play.i18n.langs = [ "en" ]
play.modules.enabled += "modules.ConfigModule"
play.modules.enabled += "modules.SilhouetteModule"
app.hostname=… # You have to configure the hostname there. If you don't do so, all accesses via hostname will be prohibited. This is a protection against DNS rebind attacks.
app{
host=… # You have to configure the host there. If you don't do so, all accesses via host will be prohibited. This is a protection against DNS rebind attacks.
secure = true # Use true iff you use HTTPS
}
yssdc{
cronKey="{{ lookup('cron_token', 'play_secret length=64') }}"
bamboo{
url = …
}
@@ -30,6 +31,25 @@ yssdc{
password = …
}
}
export{
# Optional section: export to issue tracker
issueTracker{
provider: "jira"
server: "http://…"
projectId = 10000
vulnerabilityIssueType = 10100
authentication {
type = "credentials"
user = "…"
password = "…"
}
}
# Optional section: email notifications
email{
from = "info@example.com"
noSubscriberContact = "foobar@example.com"
}
}
projects = {jobId:humanReadableName, …}
teams = […]
exclusions{
@@ -77,7 +97,7 @@ slick.dbs.odc {
driver = "slick.driver.MySQLDriver$"
db {
url = "jdbc:mysql://127.0.0.1/dependencycheck"
# Those credentials are default in ODC (but you might have changed them):
# These credentials are default in ODC (but you might have changed them):
user = "dcuser"
password = "DC-Pass1337!"
}
@@ -113,3 +133,11 @@ silhouette {
}
}
play{
# needed if you want this app to send emails
mailer{
//mock = true # If mock is true, mails are not actually sent, but just logged.
host = "…"
}
}