summaryrefslogtreecommitdiff
path: root/README.md
blob: fdbba1212a09b6934886eee750a04e67540c1b8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
insomniaircd_webhook
====================

This is a simple GitHub webhook receiver to regenerate the InsomniaIRC network configs.

### Environment Variables

* `HOSTNAME` should be set to the IRCD hostname to generate the config for.
* `SECRET_KEY` should be set to the AES key to decrypt secrets in the config.
* `SECRET_TOKEN` should be set to the secret token in the GitHub webhook configuration.

Example command:

    HOSTNAME=hypocrisy.insomniairc.net \
    SECRET_KEY=SUPER_SECRET_KEY \
    SECRET_TOKEN=DIFFERENT_SECRET \
    ruby lib/insomniaircd_webhook.rb