-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathZulipConfig.php
34 lines (27 loc) · 1.57 KB
/
ZulipConfig.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
// Zulip Phabricator plugin configuration
// Edit these to match your local settings
// Path to your Phabricator __init_script__.php
// Defaults to assuming your installation is in the script's parent directory
const PHABRICATOR_INIT_SCRIPT = '../phabricator/scripts/__init_script__.php';
// Your Zulip username or the username of the bot you created for this purpose
const ZULIP_USER = '[email protected]';
// API key for the aformentioned user; find it on the "Settings" tab on Zulip
const ZULIP_API_KEY = 'abcdef01234567890';
// Name of the target stream for your notifications. You must create it if it does not already exist.
const ZULIP_STREAM_NAME = 'Phabricator';
// Topic to send story notifications to.
const ZULIP_TOPIC_NAME = 'feed';
// URL for your Phabricator installation
const PHABRICATOR_HOST = 'http://phabricator.example.com/';
// User and certificate for connecting with Phabricator; find the certificate in ~/.arcrc
const CONDUIT_USER = 'othello';
const CONDUIT_CERT = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456';
// Miscellaneous configuration; should not require manual editing
const ZULIP_HOST = 'https://api.zulip.com/';
const FEED_POLLING_INTERVAL = 3; // seconds
const QUERY_CHUNK_SIZE = 10;
const ZULIP_RATE_LIMITING_WAIT = 0.7; // seconds
const CLIENT = 'Zulip';
const CLIENT_VERSION = '1.0';
const CLIENT_DESCRIPTION = 'Zulip integration';