Commit graph

8 commits

Author SHA1 Message Date
72a8a06c42 Add webhookey systemd service file 2021-03-17 11:45:03 +01:00
45cdd104b0 Add meta data to Cargo.toml 2021-03-17 11:01:30 +01:00
a0d7813687 Cargo update 2021-03-17 11:01:20 +01:00
606a3ad9c1 Add license 2021-03-12 17:23:35 +01:00
2539e75071 Add readme file to give at least some infos 2021-03-12 16:59:30 +01:00
82ccbf0a7e Implement proper logging
The `log` and `env_logger` crates are used for logging.
2021-03-03 17:01:41 +01:00
c8505b27c5 Parse config file and act upon
All dependencies were updated.

An example configuration file `config.yml` is added to show the
configuration options. Following locations are checked:
- `/etc/webhookey/config.yml`
- `<config_dir>/webhookey/config.yml`
- `./config.yml`

Whereas `<config_dir>` is depending on the platform:
- Linux:   `$XDG_CONFIG_HOME` or `$HOME/.config`
- macOS:   `$HOME/Library/Application Support`
- Windows: `{FOLDERID_RoamingAppData}`

Each hook's action is executed if all of the specified filters match.
2021-03-03 15:36:31 +01:00
d8ca63ab37 Parse JSON from post request
Accept a post request and try to parse it expecting the data is
formated in JSON.
2021-02-02 11:17:27 +01:00