Skip to content

Instantly share code, notes, and snippets.

@rizkylab
Created April 10, 2020 03:00
Show Gist options
  • Save rizkylab/1d0925a246ac3dd182c832c8930c7238 to your computer and use it in GitHub Desktop.
Save rizkylab/1d0925a246ac3dd182c832c8930c7238 to your computer and use it in GitHub Desktop.
root@debian-2gb-hel1-1:~# cat /etc/spectrum2/transports/spectrum.cfg
[service]
# The name of user/group Spectrum runs as.
#user=spectrum
#group=spectrum
# JID of Spectrum instance.
jid = xmpp.rqareload.co.id
# Password used to connect the XMPP server.
password = secret
# XMPP server to which Spectrum connects in gateway mode.
server = localhost
# XMPP server port.
port = 5347
# Interface on which Spectrum listens for backends.
backend_host = 127.0.0.1
# Port on which Spectrum listens for backends.
# By default Spectrum chooses random backend port and there's
# no need to change it normally
#backend_port=10001
# Number of users per one legacy network backend.
users_per_backend=10
# Full path to backend binary.
backend=/usr/bin/spectrum2_libpurple_backend
#backend=/usr/bin/spectrum2_libcommuni_backend
# Libpurple protocol-id for spectrum_libpurple_backend
protocol=prpl-telegram
#protocol=prpl-msn
#protocol=prpl-icq
# skypeweb plugin
#protocol=prpl-skypeweb
# facebook plugin
#protocol=prpl-facebook
# protocol=any means that user sets his protocol in his JID which has to be
# in following format: protocol.username@domain.tld
# So for example: prpl-jabber.hanzz.k%gmail.com@domain.tld
#protocol=any
# If enabled, your legacy network buddies will be removed when you unsubscribe from them in the XMPP.
#enable_remove_buddy=true
[identity]
# Name of Spectrum instance in service discovery
name=Spectrum Telegram Transport
# Type of transport ("msn", "icq", "xmpp").
# Check http://xmpp.org/registrar/disco-categories.html#gateway
type=telegram
# Category of transport, default is "gateway
#category=gateway
[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 = sqlite3
# For SQLite3: Full path to database
# For MySQL and PostgreSQL: name of database
# default database = /var/lib/spectrum2/$jid/database.sql
#database = jabber_transport
# Server.
#server = localhost
# Port.
#port = 0
# User.
#user = spectrum
# Paasword.
#password = secret
# Prefix used for tables
#prefix = jabber_
# Connection string (for pqxx only!)
# If you set this, it ignores every other database option except for type and prefix.
#connectionstring = host=localhost user=specturm password=secret
[registration]
# Enable public registrations
enable_public_registration=1
# Text to display upon user registration form
#username_label=Jabber JID (e.g. user@server.tld):
#instructions=Enter your remote jabber JID and password as well as your local username and password
# If True a local jabber account on <local_account_server> is needed
# for transport registration, the idea is to enable public registration
# from other servers, but only for users, who have already local accounts
#require_local_account=1
#local_username_label=Local username (without @server.tld):
#local_account_server=localhost
#local_account_server_timeout=10000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment