Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D Deimos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 23
    • Issues 23
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • performance
  • storage
  • Deimos
  • Issues
  • #59
Closed
Open
Issue created Apr 29, 2020 by Aaron Dees@adeesOwner

Define Services basic configuration in configuration file

It would be good to have the basic configuration for the service defined in a configuration file and not hardcoded into main.cc.

A potential solution to this would be to have a config.cc and config.h that have a config structure that holds all the info regarding system configuration details such as;

  • serverPort
  • logFile
  • logLevel

Perhaps this will be small initially but can be made bigger down the line.

From the command line the service's executable would therefore only require a configuration file holding the config settings for the system.

Potential tools:

  • CLI11 for command line and config file parsing
Assignee
Assign to
Time tracking