Local Komiser CLI (Single account)

Komiser now supports multiple cloud accounts by default. Account configuration is done through the config.toml file, just pass in your account OVH credentials.

We’ve also added 2 methods of persisting your account data.

Postgres

Add to config.toml file

[postgres]
uri="postgres://postgres:komiser@localhost:5432/komiser?sslmode=disable"
For Postgres, Komiser anticipates the existence of a role postgres and a database komiser on the local Postgres server.

SQLite

[sqlite]
  file = "komiser.db"

Configuring Credentials

The OVH credentials required to successfully integrate Komiser can be easily generated by:

Creating app keys

  • Go to OVHcloud API page.
  • Click Login in the upper right.
  • Enter your OVHcloud credentials.
  • Set a timeline, labelled Validity, during which you allow actions through the OVHcloud APIs.
  • Click the following link: https://ca.api.ovh.com/createToken/
  • Fill in your OVHcloud customer ID, password, and application name.
  • Click on Create keys button. You will be issued three keys: the application key called AK, tour application secret called AS and your consumer key called CK.

Add your OVHcloud credentials to your configuration file

[[ovh]]
  name="ovh-account"
  endpoint="ovh-eu"
  application_key="my_app_key"
  application_secret="my_application_secret"
  my_consumer_key="my_consumer_key"

[sqlite]
  file="komiser.db

Run it!

That should be it. Try out the following from your command prompt to start the server:

komiser start 

Point your browser to http://localhost:3000

Local Komiser CLI (Multiple accounts)

Simply add more authentication blocks to the configuration file

[[ovh]]
  name="ovh-account"
  endpoint="ovh-eu"
  application_key="my_app_key"
  application_secret="my_application_secret"
  my_consumer_key="my_consumer_key"

[[ovh]]
  name="ovh-account-1"
  endpoint="ovh-eu"
  application_key="my_app_key"
  application_secret="my_application_secret"
  my_consumer_key="my_consumer_key"

[[ovh]]
  name="ovh-account-2"
  endpoint="ovh-eu"
  application_key="my_app_key"
  application_secret="my_application_secret"
  my_consumer_key="my_consumer_key"

[[ovh]]
  name="ovh-account-3"
  endpoint="ovh-eu"
  application_key="my_app_key"
  application_secret="my_application_secret"
  my_consumer_key="my_consumer_key"

[sqlite]
  file="komiser.db