-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#188 biosecurity and blog email templates
- Loading branch information
1 parent
917424f
commit 23bde45
Showing
41 changed files
with
2,151 additions
and
897 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
COMPOSE_PROJECT_NAME=alerts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
services: | ||
mysql: | ||
container_name: mysql-alerts | ||
image: "mysql:8.1.0" | ||
environment: | ||
MYSQL_DATABASE: 'alerts' | ||
MYSQL_USER: 'alerts_user' | ||
MYSQL_PASSWORD: 'password' | ||
MYSQL_ROOT_PASSWORD: 'password' | ||
command: --default-authentication-plugin=mysql_native_password | ||
ports: | ||
- "3309:3306" | ||
expose: | ||
- '3309' | ||
smtpdev: | ||
image: rnwood/smtp4dev | ||
ports: | ||
- "3000:80" | ||
- "2525:25" | ||
container_name: smtpdev-alerts | ||
|
||
version: "2" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions
2
grails-app/assets/javascripts/bootstrap-3-typeahead-4.0.1.min.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,28 @@ | ||
--- | ||
# mail.enabled: true will send email via a mail server depending on the mail.ses.enabled | ||
|
||
# Set mail.ses.enabled true will use AWS SES, it requires the AWS credentials to be set in the environment variables | ||
# Set false will use the default grails mail plugin, we need to config the mail server and port in grails.mail | ||
# In dev, email will be posted to Postie docker container, which can be accessed via http://localhost:3000 | ||
|
||
mail: | ||
enabled: true | ||
ses: | ||
enabled: false | ||
details: | ||
sender: "[email protected]" | ||
alertAddressTitle: "Atlas alerts" | ||
infoSender: "[email protected]" | ||
infoAddressTitle: "Atlas of Living Australia" | ||
defaultResourceName: "Atlas of Living Australia" | ||
# forceAllAlertsGetSent results in emails getting sent regardless if data has changed - only use in DEV env | ||
forceAllAlertsGetSent: false | ||
|
||
grails: | ||
#default mail service | ||
mail: | ||
port: 2525 | ||
server: localhost | ||
profile: web | ||
cache: | ||
clearAtStartup: true | ||
|
@@ -115,15 +138,6 @@ security: | |
adminRole: ROLE_ADMIN | ||
uriFilterPattern: ["/","/alaAdmin/*","/testAuth/*","/query/*","/admin/*","/admin/user/*","/admin/user/debug/*","/admin/debug/all","/notification/myAlerts","/notification/changeFrequency","/notification/addMyAlert","/notification/addMyAlert/*","/notification/deleteMyAlert/*","/notification/deleteMyAlert/*","/notification/deleteMyAlertWR/*","/webservice/*","/webservice/createTaxonAlert","/webservice/taxonAlerts","/webservice/createRegionAlert","/webservice/regionAlerts","/webservice/deleteTaxonAlert/*","/webservice/create*","/webservice/createSpeciesGroupRegionAlert","/ws/*","/ws/createTaxonAlert","/ws/taxonAlerts","/ws/createRegionAlert","/ws/regionAlerts","/ws/deleteTaxonAlert/*","/ws/createTaxonRegionAlert","/ws/createSpeciesGroupRegionAlert","/admin/runChecksNow"] | ||
|
||
postie: | ||
emailSender: "[email protected]" | ||
emailAlertAddressTitle: "Atlas alerts" | ||
emailInfoAddressTitle: "Atlas of Living Australia" | ||
emailInfoSender: "[email protected]" | ||
defaultResourceName: "Atlas of Living Australia" | ||
enableEmail: false | ||
# forceAllAlertsGetSent results in emails getting sent regardless if data has changed - only use in DEV env | ||
forceAllAlertsGetSent: false | ||
ala: | ||
baseURL: "https://www.ala.org.au" | ||
userDetailsURL: "https://auth.ala.org.au/userdetails/userDetails/getUserListFull" | ||
|
@@ -156,6 +170,11 @@ useBlogsAlerts: true | |
useCitizenScienceAlerts: true | ||
biosecurity: | ||
cronExpression: '0 30 9 ? * WED' | ||
query: | ||
template: | ||
authoritativeList: /occurrences/search?q=species_list_uid:___LISTIDPARAM___&fq=decade:2020&fq=country:Australia&fq=first_loaded_date:[___DATEPARAM___%20TO%20*]&fq=occurrence_date:[___LASTYEARPARAM___%20TO%20*]&sort=first_loaded_date&dir=desc&disableAllQualityFilters=true | ||
nonAuthoritativeList: /occurrences/search?q=species_list:___LISTIDPARAM___&fq=decade:2020&fq=country:Australia&fq=first_loaded_date:[___DATEPARAM___%20TO%20*]&fq=occurrence_date:[___LASTYEARPARAM___%20TO%20*]&sort=first_loaded_date&dir=desc&disableAllQualityFilters=true | ||
maxRecords: 500 | ||
moreinfo: | ||
link: https://www.ala.org.au/blogs-news/ala-helps-to-stop-pests-in-their-tracks/ | ||
dir: /data/alerts/emails | ||
|
@@ -172,7 +191,7 @@ biosecurity: | |
lgaField: cl10923 | ||
shape: cl11033:"Namadgi" OR cl11033:"Tidbinbilla" OR cl11033:"Bimberi" | ||
#shape: spatialObject:9223660 | ||
eventDateAge: 29 | ||
eventDateAge: 150 | ||
firstLoadedDateAge: 8 | ||
|
||
environments: | ||
|
@@ -182,16 +201,41 @@ environments: | |
mail: | ||
host: "localhost" | ||
port: 1025 | ||
username: postie.emailSender | ||
#username: postie.emailSender | ||
security: | ||
cas: | ||
appServerName: "http://localhost:8080" | ||
userdetails: | ||
web: | ||
url: https://aws-auth-test-2023.test.ala.org.au/userdetails/ | ||
api: | ||
url: https://api.test.ala.org.au/userdetails/cognito/ | ||
mail: | ||
details: | ||
sender: "[email protected]" | ||
alertAddressTitle: "Atlas alerts [Dev]" | ||
infoAddressTitle: "Atlas of Living Australia [Dev]" | ||
infoSender: "[email protected]" | ||
test: | ||
grails: | ||
serverURL: "http://dev.ala.org.au:8080" | ||
mail: | ||
host: "localhost" | ||
port: 25 | ||
security: | ||
cas: | ||
appServerName: "https://auth.ala.org.au" | ||
userdetails: | ||
web: | ||
url: https://aws-auth-test-2023.test.ala.org.au/userdetails/ | ||
api: | ||
url: https://api.test.ala.org.au/userdetails/cognito/ | ||
mail: | ||
details: | ||
sender: "[email protected]" | ||
alertAddressTitle: "Atlas alerts [Test]" | ||
infoAddressTitle: "Atlas of Living Australia [Test]" | ||
infoSender: "[email protected]" | ||
production: | ||
grails: | ||
serverURL: "https://auth.ala.org.au/alerts" | ||
|
@@ -201,6 +245,11 @@ environments: | |
security: | ||
cas: | ||
appServerName: "https://auth.ala.org.au" | ||
userdetails: | ||
web: | ||
url: https://auth.ala.org.au/userdetails/ | ||
api: | ||
url: https://api.ala.org.au/userdetails/cognito/ | ||
|
||
--- | ||
hibernate: | ||
|
@@ -229,7 +278,7 @@ dataSource: | |
validationQueryTimeout: 10 # seconds (default: -1 i.e. disabled) | ||
validationInterval: 30000 # milliseconds, default is 30000 (30 seconds) | ||
removeAbandoned: true # # default: false | ||
removeAbandonedTimeout: 300 # seconds (default: 60) | ||
removeAbandonedTimeout: 3600 # seconds (default: 60), must be > quartz job duration | ||
logAbandoned: true # adds some overhead to every borrow from the pool, disable if it becomes a performance issue | ||
logValidationErrors: true # default: false, logs validation errors at SEVERE | ||
# NOTE: removeAbandoned: true OR testWhileIdle: true enables the Pool Cleaner. There is a bug with the | ||
|
@@ -259,9 +308,11 @@ environments: | |
username: sa | ||
password: | ||
url: jdbc:h2:mem:testDb;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE | ||
userDetails: | ||
url: https://aws-auth-test-2023.test.ala.org.au/userdetails/ | ||
production: | ||
dataSource: | ||
dbCreate: none | ||
dbCreate: update | ||
|
||
myannotation: | ||
enabled: false | ||
|
@@ -270,8 +321,7 @@ webservice: | |
jwt: true | ||
jwt-scopes: "openid users/read" | ||
|
||
userDetails: | ||
url: https://aws-auth-dev.ala.org.au/userdetails/ | ||
|
||
|
||
security: | ||
cas: | ||
|
Oops, something went wrong.