Skip to content

Server Configuration

Don Cato edited this page Jan 15, 2022 · 2 revisions

Info

The DMNB Server can be configured through the configuration file. This page describes the content and meaning of that configuration file.

The File

The config file is located (relative to the server script) under ./rsc/dmnb.config. If the file (or the rsc folder) is not already present, it will be created. The server is not able to start without an intact config file. If the file is newly created, it will be set to it's defaults. In this case, the file content looks like this:

[file_locations]
log_folder = './rsc/auditlogs/'
database_path = './rsc/dmnb.sqlite'
email_body_scheme = './rsc/email_body.html'

[smtp_config]
smtp_server = '127.0.0.1'
smtp_username = 'test'
smtp_password = 'test'

The Configuration

This section will give a short overview what the purpose of each setting in the configuration is.

  • file_location - Set the location of different important files and folders
    • log_folder - Set where the userlogs (auditlogs) are stored. This must be a directory and a trailing slash must be included
    • database_path - The path for the SQLite Database file to use.
    • email_body_scheme - The path for the email body file. This file is a scheme for the emails sent by the server
  • smtp_config - SMTP configuration used to send emails.
    • smtp_server = The server address for the smtp server to use for mailing
    • smtp_username = The username for authentication with the smtp server
    • smtp_password = The password for authentication with the smtp server
Clone this wiki locally