Skip to content
Igor Balos edited this page Jun 19, 2018 · 3 revisions

As mentioned in getting started page, app can be started by following command:

rackup -p 8888

This is the default way of running the application.

First time you run the application, configuration file general.yaml is generated from the template configuration file general.yaml.default. By first run, initial app configuration is set.

You can find this file in the config folder of the Sinhook application.

In this file you can set the following:

  • security - you can set basic http auth, so that you can test webhook URLs which use credentials
  • hooks to store count - number of webhook responses the app can store is limited to specific count
  • hooks storage - at the moment, you can store test hooks to a folder or ram, but the library can easily be extended to store hooks in DB too

Advanced configuration

Sinhook app allows you to store encrypted credentials in your YAML file. In order to create encrypted values run the following in your Sinhook app root folder, once you installed the app:

encrypt_property_for_yaml encrypt [SECRET_PASSWORD] [CONTENT_TO_ENCRYPT]

This way you will get back encrypted version of your content, which you can put in your general.yaml file. Your yaml file credentials would look something like this:

password:      ENC(tJeONq6vODQWNWCIvDuK5PFIr+A=)

Once you finish adding encrypted content to your yaml file, you would need to run the app like this:

ENCRYPTED_YAML=true PROPERTIES_ENCRYPTION_PASSWORD=[SECRET_PASSWORD] rackup -p 8888