Skip to content

Instantly share code, notes, and snippets.

@mogetutu
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mogetutu/11396184 to your computer and use it in GitHub Desktop.
Save mogetutu/11396184 to your computer and use it in GitHub Desktop.
webhook
<?php
# Separated with comma. Empty string - all ips allowed.
# Look in admin panel for GitHub public IP's
# Example: '127.0.0.1, 192.168.1.1'
define('__ALLOWED_IPS__', '94.45.140.46, 207.97.227.253, 50.57.128.197');
# Emails to send sync results
define('MAIL_TO', 'johndoe@example.com');
# Mail everything, including logs.
define('MAIL_LOGS', true);
# Mail only if error occured
define('MAIL_ERRORS', true);
#
# HOST configuration
#
# Config file for storing information about production servers
# in which web site must be synced (allowed configuration when
# one repository sync to multiple web nodes)
#
# [server short name]
# proto = ''
#
$hosts_conf = array(
# Development server with SSH server and rsync
'dev' => array(
'proto' => 'rsync+ssh',
'host' => '127.0.0.1',
'user' => 'www-data',
'password' => '',
'path' => '/var/www/'
),
# Shared Hosting with FTP access
'prod' => array(
'proto' => 'ftp',
'host' => '127.0.0.1',
'user' => 'hosting',
'password' => 'hosting',
'path' => '/usr/sites/'
)
);
#
# REPOSITORIES configuration
#
$repo_conf = array(
'http://github.com/Repo/github-webhook' => array(
'branch' => 'master',
'hosts' => 'dev',
'repo_path' => '',
'server_path' => 'github-webhook',
'config_folder' => 'webhook'
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment