User Tools

Site Tools


spoll:config

Configuration

A configuration file based on config/config.php.template needs to be created.

config.php
<?php
$databases = array(
	'default' =>
	array(
		'default' =>
		array(
			'database' => 'spoll',
			'username' => 'spoll',
			'password' => 'password',
			'host' => 'localhost',
			'port' => '',
			'driver' => 'pgsql',
		),
	),
);
 
$config = array(
	# Password used to administrate poll
	'admin_password' => 'password',
 
	# Poll to show by default
	'default_poll' => 1,
 
	# Password used to generate remote URLs
	'admin_password_remote_link_generation' => 'password',
 
	# Set to TRUE if this is the remote system, FALSE otherwise.
	# This disables the admin interface's ability to view results, as well as the URL generation.
	'is_remote_system' => FALSE,
 
	# Set to TRUE if this is the local system, FALSE otherwise.
	# This enabled the feature to retrieve remote fillins.
	'is_local_system' => TRUE,
 
	# The key used to authenticate the remote and the local server to each others.
	# Needs to be equal on local and remote side.
	'remote_s2s_key' => 'tea3boh2gai6Iepheel2',
 
	# The key used to authenticate the URL parameters for the remote functionality.
	# Needs to be equal on local and remote side.
	'remote_integrity_key' => 'cheNeiG2Duenaed2uqu9',
 
	# Random value used to generate the encryption keys.
	# SHOULD ONLY BE SET ON LOCAL SYSTEM!
	# Set the value to an empty or different string on the remote system.
	'remote_encryption_key_seed' => 'Aemah8moo9Eo7baeS3oh',
 
	# The URL to spoll of the remote installation.
	# Ignored on the remote side.
	'remote_base_url' => 'http://localhost/spoll',
 
	# If set to TRUE, only calls with remote URL are allowed.
	'require_remote_urls' => FALSE,
 
	#
	# Cryptographic settings (no need to change)
	# All values should be equal on local and remote side.
	#

	# Request values of remote URLs that should be authenticated.
	# Should be equal on local and remote side.
	#
	# Do not remove any values, unless you adopt the code.
	# "c" is always authenticated and should not be listed here.
	'remote_authenticated_values' => array('f', 'p'),
 
	# MAC algorithm used for remote URL authentication.
	# Needs to be equal on local and remote side.
	'remote_integrity_algorithm' => 'ripemd128',
 
	# Hash algorithm used to generate password for remote encryption.
	# Digest size needs to be greater or equal to key size of remote_encryption_algorithm.
	'remote_encryption_key_generator' => 'sha1',
 
	# Block cipher encrypt remote results with.
	# Needs to be equal on local and remote side.
	'remote_encryption_algorithm' => 'rijndael-128',
 
	#
	# Advanced configuration options
	#

	# Enabled debugging for troubleshooting.
	'debug' => FALSE,
 
	# Modify sent HTTP Content-type headers for non-HTML output.
	# If value is not set, a default will be used, according to the context.
	# If the value is net to 'null', no specific header will be sent.
	'http-content-types' => array(
		//'cron' => 'text/plain',
		//'json' => 'application/json',
		//'generate-remote-url' => 'text/plain',
	),
);
spoll/config.txt · Last modified: 30.01.2014 17:45:16 by Manuel Faux