Changeset - 909f59cd4242
[Not reviewed]
0 1 0
Jan Kaluza - 12 years ago 2013-03-12 12:58:59
hanzz.k@gmail.com
docs update
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
documentation/configuration/config_file.md
Show inline comments
 
---
 
layout: config
 
title: Spectrum 2
 
---
 

	
 
> **[database]**
 
> **\[database\]**
 
> * [database](#databasedatabase)
 
> * [password](#databasepassword)
 
> * [port](#databaseport)
 
> * [prefix](#databaseprefix)
 
> * [server](#databaseserver)
 
> * [type](#databasetype)
 
> * [user](#databaseuser)
 
> * [identity.category](#identitycategory)
 
> * [identity.name](#identityname)
 
> * [identity.type](#identitytype)
 
> * [logging.backend_config](#loggingbackend_config)
 
> * [logging.config](#loggingconfig)
 
> * [registration.auto_register](#registrationauto_register)
 
> * [registration.enable_public_registration](#registrationenable_public_registration)
 
> * [registration.instructions](#registrationinstructions)
 
> * [registration.username_label](#registrationusername_label)
 
> * [registration.username_mask](#registrationusername_mask)
 
> * [service.admin_jid](#serviceadmin_jid)
 
> * [service.admin_password](#serviceadmin_password)
 
> * [service.allowed_servers](#serviceallowed_servers)
 
> * [service.backend](#servicebackend)
 
> * [service.backend_host](#servicebackend_host)
 
> * [service.backend_port](#servicebackend_port)
 
> * [service.cert](#servicecert)
 
> * [service.cert_password](#servicecert_password)
 
> * [service.group](#servicegroup)
 
> * [service.jid](#servicejid)
 
> * [service.password](#servicepassword)
 
> * [service.pidfile](#servicepidfile)
 
> * [service.port](#serviceport)
 
> * [service.server](#serviceserver)
 
> * [service.server_mode](#serviceserver_mode)
 
> * [service.user](#serviceuser)
 
> * [service.users_per_backend](#servicusers_per_backend)
 
> * [service.working_dir](#serviceworking_dir)
 

	
 

	
 

	
 
### Types of configuration fields
 

	
 
Following types are used:
 

	
 
integer - Examples: key=0
 

	
 
string - Examples: key=something
 

	
 
boolean - Examples: key=0 or key=1
 

	
 
list - List of strings (or Jabber IDs). You can specify this options more than once:
 

	
 
	allowed_servers=domain.tld
 
	allowed_servers=example.com
 

	
 
#### database.database
 

	
 
Key | val
 
----|----
 
Description:|Configures full path to database or the name of database.
 
Context:|server-mode and gateway-mode
 
Type:|string
 
Default:|/var/lib/spectrum2/$jid/database.sql
 

	
 
This option configures full path to database (in case of SQLite3) or the name of database.
 

	
 
#### database.password
 

	
 
Key | val
 
----|----
 
Description:|Configures password to connect the database.
 
Context:|server-mode and gateway-mode
 
Type:|string
 
Default:|empty string
 

	
 
For server-client databases, this option configures password to be used to connect the database.
 

	
 
#### database.port
 

	
 
Key | val
 
----|----
 
Description:|Configures port on which database listens for incoming connections.
 
Context:|server-mode and gateway-mode
 
Type:|string
 
Default:|empty string
 

	
 
For server-client databases, this option configures port on which database listens for incoming connections.
 

	
 
#### database.prefix
 

	
 
Key | val
 
----|----
 
Description:|Configures the prefix for the Spectrum 2 tables in database.
 
Context:|server-mode and gateway-mode
 
Type:|string
 
Default:|empty string
 

	
 
This option configures the prefix for the Spectrum 2 tables in database. When tables are created, they are prefixed
0 comments (0 inline, 0 general)