Skip to content

Latest commit

 

History

History
66 lines (50 loc) · 1.41 KB

dyndrest-configuration.adoc

File metadata and controls

66 lines (50 loc) · 1.41 KB

DynDRest Configuration

Default settings

DynDRest has a lot of configuration settings. Most of them has default settings, but they can be overwritten by the individual configuration file.

Below all default settings are listed.

link:../src/main/resources/application.yml[role=include]

Individual settings

The individual configuration file dyndrest.yml should be inside the application directory.

OAuth2

spring:
  security:
    user:
      name: oauthuser
      password: oauthpasswd

Provider settings for AutoDNS (domainrobot-sdk)

spring:
  security:
    user:
      name: oauthuser
      password: oauthpasswd

Backup and Restore

There is a very simple cron-triggered service to dump the database regular, it’s part of the database configuration:

dyndrest:
  database:
    backup:
      enabled: true
      path: ./backup
      cron: "0 30 18 * * MON"
    restore:
      enabled: enabled
      path: ./restore
    dump-file: dump.sql

In this example every monday at 18:30 a database dump will be written to ./backup/dump.sql. The file will be overwritten every time!

If restore is enabled and the file ./restore/dump.sql exists at start, the dump will be restored and the file renamed to ./restore/dump.sql.bak.