Skip to content

Configurations unleashed

Nadeem Mohammad edited this page Jun 19, 2020 · 18 revisions

There are various configurations

Image Configurations

Refer this for more details.

Workbook Configurations

Refer this for more details.

SMTP Configurations

spring.mail.default-encoding=UTF-8
spring.mail.host=smtp.gmail.com
[email protected]
spring.mail.password=GmailPAssword
spring.mail.port=587
spring.mail.protocol=smtp
spring.mail.test-connection=false
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true

For corporate you may specify the following minimal configurations

spring.mail.host=<corporte_host>
spring.mail.port=<corporate_port>
spring.mail.protocol=smtp

Application Level Configurations

  • app.schedule.corn : Defines how frequently the the job should send the email, it should be at max once a day, default value is 0 0 10 * * * runs everyday @ 10:00 AM, an example would be 0 30 12 * * ? runs job every day at 12:30
  • app.stop_on.load_error : Defines if application should stop on error on continue, default is false.
  • app.pool.thread.core_size : Defines the core thread pool size for scheduler, default is 5
  • app.pool.thread.max_size : Defines the max thread pool size for scheduler, default is 10
  • app.mailer.birthday.enabled : Define weather birthday mailers should be sent, default is true.
  • app.mailer.anniversary.enabled : Define weather anniversary mailers should be sent, default is true.
  • app.mail.expire_after_days : An Integer property to add expiration header to emails
  • app.schedule.externally_managed : Defaults to false, which means schedules are managed internally, it can be set to true (If you run as standalone, and want to manage the trigger externally), if you are planning to use Task Scheduler (Windows) or Cron in Unix
  • Belated related configurations :
    1. app.belated.date_format : Examples yyyy-MM-dd, yyyy/MM/dd , d/MM/yyyy , dd/MM/yyyy , dd-MM-yyyy dd-MMM-yyyy
    2. app.belated.dates : Comma separated dates, 2020-06-16, 2020-06-17, 2020-06-18 (Assuming date format is app.belated.date_format = yyyy-MM-dd)
    3. app.belated.max.back_days : Default is 10 days, any date before this would be ignored
    4. app.belated.prefix : Default is empty string, Can be set to values like Belated :

Logging Level Configurations

  • logging.level.com.github : Defines the loging level for wishing app, can be changed to TRACE , DEBUG, INFO
  • logging.file.name : Defines the file name log file. Potential value could be logs/wishing-app.log

Next

Various Options To Run