Skip to content
This repository
tree: e1126a27ca
Fetching contributors…

Cannot retrieve contributors at this time

file 140 lines (115 sloc) 5.675 kb
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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
<?php
/*
 * general-example:
 * Example values for the "general" config file.
 *
 * Configuration parameters, in PHP syntax. Configuration parameters are set
 * using the PHP define('OPTION_...', '...') function. Both perl and PHP code
 * parse this properly, so you can use comments and conditionals and whatnot,
 * but unless essential it's better to keep it simple....
 *
 * Copy this file to one called "general" in the same directory. Or
 * have multiple config files and use a symlink to change between them.
 *
 * Copyright (c) 2004 UK Citizens Online Democracy. All rights reserved.
 * Email: francis@mysociety.org; WWW: http://www.mysociety.org
 *
 * $Id: general-example,v 1.42 2009-10-28 15:42:14 louise Exp $
 *
 */

// Where the DaDem, MaPit and Ratty services are.
define('OPTION_DADEM_URL', 'http://services.mysociety.org/dadem');
define('OPTION_MAPIT_URL', 'http://mapit.mysociety.org/');
define('OPTION_RATTY_URL', 'http://services.mysociety.org/ratty');
define('OPTION_EVEL_URL', 'http://services.mysociety.org/evel.cgi');

// Where the FYR queue service is.
define('OPTION_FYR_QUEUE_URL', 'http://sometestdomain.writetothem.com/services/queue');
define('OPTION_FYR_QUEUE_USERPWD', null);

// Name of SMTP server. This host must allow relaying from the machine on which
// fyrqd runs.
define('OPTION_SMTP_SMARTHOST', 'localhost');

// PostgreSQL database for FYR queue
define('OPTION_FYR_QUEUE_DB_HOST', 'localhost');
define('OPTION_FYR_QUEUE_DB_PORT', '5432');
define('OPTION_FYR_QUEUE_DB_NAME', 'fyr');
define('OPTION_FYR_QUEUE_DB_USER', 'fyr');
define('OPTION_FYR_QUEUE_DB_PASS', '');

// Puts in a testing mode where emails are reflected back to
// sender, rather than sent to their representative.
define('OPTION_FYR_REFLECT_EMAILS', 1);

// Don't mark contacts as failing when delivery fails. This should be set to
// 1 ONLY on the live site, and not on any other installation.
define('OPTION_FYR_MARK_CONTACTS_FAILING', 0);

// Base domain of the website. This is used to distinguish internal from
// external referrers, for instance.
define('OPTION_WEB_DOMAIN', 'writetothem.com');

// Top-level URL of current website
define('OPTION_BASE_URL', 'http://sometesthost.' . OPTION_WEB_DOMAIN);
define('OPTION_ADMIN_URL', 'https://secure.../admin');
define('OPTION_ADMIN_AUTH_USER', undef);
define('OPTION_ADMIN_AUTH_PASSWORD', undef);


// Domain name for emails to current website
define('OPTION_EMAIL_DOMAIN', 'sometestdomain.writetothem.com');
// Address for support email. TODO: Actually use this everywhere in code
// (currently only used in place where needed for test suite)
define('OPTION_CONTACT_EMAIL', 'team@'.OPTION_EMAIL_DOMAIN);
// Prefix of return-path local part. All mail for EMAIL_PREFIX(.*)@EMAIL_DOMAIN
// must be delivered to the bounce processing scripts.
define('OPTION_EMAIL_PREFIX', 'fyr-');

// Maximum similarity between a new message and existing messages before a
// message is noted as being similar to another. Numbers nearer to unity
// indicate greater similarity.
define('OPTION_MESSAGE_SIMILARITY_THRESHOLD', '0.50');

// Configuration for fax generation and sending.
// Truetype font for writing faxes
define('OPTION_FAX_FONT', '/home/chris/projects/mysociety/cvs/mysociety/fyr/data/Cyberbit.ttf');
// Location of efax command.
define('OPTION_FAX_COMMAND', '/software/bin/efax');
// Where we keep UUCP lock files.
define('OPTION_FAX_LOCKDIR', '/var/lock'); // Linux
//define('OPTION_FAX_LOCKDIR', '/var/spool/lock'); // *BSD?
// Device to use for fax sending, without the /dev/.
define('OPTION_FAX_DEVICE', 'ttyS0');
// efax(1) options to configure the modem. This is NOT interpreted by the
// shell.
define('OPTION_FAX_OPTIONS', '-iZ -i&FE0&D2S7=120 -i&C0 -kZ -iM1L0');
// nb -iM1L0 is the speaker config -- see efax(1)
// Sending station ID for faxes. Should be a full international phone number.
define('OPTION_FAX_STATIONID', '000000000000');
// Fax header (sent by the fax machine, not written into the fax).
define('OPTION_FAX_HEADER', 'Sent via WRITE TO THEM http://www.writetothem.com/');
// Do faxes to the Lords fax machine continue outside fax hours?
define('OPTION_FAX_LORDS_OUTSIDE_FAX_HOURS', 0);


// Configuration of the queue management daemon:
// Number of worker processes
define('OPTION_QUEUE_DAEMON_PROCESSES', '5');
// Notification socket path
define('OPTION_QUEUE_DAEMON_SOCKET', '/tmp/fyrqd.sock');
// PID file location
define('OPTION_QUEUE_DAEMON_PIDFILE', '/var/run/fyrqd.pid');

// Should the queue daemon on this host send emails and/or faxes?
define('OPTION_QUEUE_DAEMON_SEND_EMAIL', '0');
define('OPTION_QUEUE_DAEMON_SEND_FAX', '0');

// Limit on length of message
define('OPTION_MAX_BODY_LENGTH', 20000);

// Debug log level for PHP website
define('OPTION_PHP_DEBUG_LEVEL', 0);

// URLS of admin scripts
define('OPTION_ADMIN_SERVICES_CGI', 'https://secure.mysociety.org/admin/services');

// Log file (used in test harness, and later in admin scripts)
define('OPTION_HTTPD_ERROR_LOG', '/var/log/apache/error.log');

// For passing authentication to HearFromYourMP
define('OPTION_AUTH_SHARED_SECRET', 'long string of random bytes');
define('OPTION_HEARFROMYOURMP_BASE_URL', 'http://hearfromyourmp.owl');

// Tracking
define('OPTION_TRACKING', 0); // off by default
define('OPTION_TRACKING_URL', 'http://path/to/web/bug');
define('OPTION_TRACKING_SECRET', 'really-secret-value');

// Surveying
define('OPTION_SURVEY_SECRET', 'your-secret-value-here');
define('OPTION_SURVEY_URL', 'http://survey.mysociety.org');

// Cobrands
define('OPTION_ALLOWED_COBRANDS', 'animalaid|foiorder2009|freeourbills|cheltenham');

// Analytics
define('OPTION_GOOGLE_ANALYTICS_TRACKING_CODE', '');

?>
Something went wrong with that request. Please try again.