Skip to content

Instantly share code, notes, and snippets.

@silberzwiebel
Created May 28, 2016 13:21
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 silberzwiebel/f7bf80fd38c1e42f08f48dc50a5747eb to your computer and use it in GitHub Desktop.
Save silberzwiebel/f7bf80fd38c1e42f08f48dc50a5747eb to your computer and use it in GitHub Desktop.
[service]
# JID of Spectrum instance.
jid = telegram.myserver.tld
# Password used to connect the XMPP server.
password = secretpassword
# XMPP server to which Spectrum connects in gateway mode.
server = 127.0.0.1
# XMPP server port.
port = 5347
# Interface on which Spectrum listens for backends.
backend_host = 127.0.0.1
# Number of users per one legacy network backend.
users_per_backend=10
# Full path to backend binary.
backend=/usr/bin/spectrum2_libpurple_backend
# Libpurple protocol-id for spectrum_libpurple_backend
protocol=prpl-telegram
[identity]
# Name of Spectrum instance in service discovery
name=Telegram
# Type of transport ("msn", "icq", "xmpp").
# Check http://xmpp.org/registrar/disco-categories.html#gateway
type=xmpp
[logging]
# log4cxx/log4j logging configuration file in ini format used for main spectrum2 instance.
config = /etc/spectrum2/logging.cfg
# log4cxx/log4j logging configuration file in ini format used for backends.
backend_config = /etc/spectrum2/backend-logging.cfg
[database]
# Database backend type
# "sqlite3", "mysql", "pqxx", or "none" without database backend
type = mysql
# For SQLite3: Full path to database
# For MySQL and PostgreSQL: name of database
# default database = /var/lib/spectrum2/$jid/database.sql
database = telegram_transport
# Server.
server = localhost
# Port.
port = 0
# User.
user = spectrum
# Paasword.
password = secretpassword2
# Prefix used for tables
#prefix = telegram_
[registration]
# Enable public registrations
enable_public_registration=1
# Text to display upon user registration form
username_label=Handynr (+491234...)
#instructions=Enter your remote jabber JID and password as well as your local username and password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment