This repository has been archived by the owner on Mar 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathConfig_example.txt
124 lines (92 loc) · 4.03 KB
/
Config_example.txt
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
# coding: utf-8
# Connection host.
# For Prosody/Ejabberd: "vk.example.com".
# For Openfire (for new versions): just subdomain ("vk" for vk.example.com).
Host = "localhost"
# Connection server (usually equals hostname).
# If your transport runs on the same server as the jabber-server
# then it's just "localhost".
Server = "localhost"
# Connection port (as set in Jabber server config).
# Default value for Prosody is 5347.
Port = 5347
# Transport ID (the ID which the transport will send stanzas from).
TransportID = "vk.example.com"
# Connection password.
Password = "secret"
# Language (ru/en/pl).
DefLang = "en"
# White list. Put servers here that should be allowed access to the
# transport, e.g., ['yourserver1.tld','yourserver2.tld'].
# Leave it blank to disable blocking completely.
WhiteList = []
# Watcher list. Put transport admin JID(s) here to receive notifications
# about new registrations, e.g., ['admin@yourserver1.tld','name@yourserver2.tld'].
# Leave it blank to disable notifications.
WatcherList = []
# List of admin jids (JID for "!eval" command and admin-features in adhoc).
# Example: ["mrdoctorwho@example.com", "lindsey@somehost.com"]
ADMIN_JIDS = []
# Additional description. It will be shown after "about" text in transport's vCard.
AdditionalAbout = ""
# Conference server. Leave it blank to disable group chats. Depends on Jabber
# server's MUC. E.g., conference.example.com.
ConferenceServer = ""
# Photo size (photo_50, photo_100, photo_200_orig).
# Affects transport stability & performance
PhotoSize = "photo_100"
# Publish this intstance information in the public transport list at
# http://xmppserv.ru.ru/xmpp-monitor.
allowBePublic = True
# User limit. How many users can be registered on your server?
# Set to 0 for unlimited.
USER_LIMIT = 0
# URL which will be used in registration form. See the example in js/vk4xmpp.html or in http://simpleapps.ru/vk4xmpp.html (if the site is still alive in your time)
# URL MUST have "%d" somewhere, it's used for access definition. Since 01.08.2014 any plugin can modify the access, so it will be defined in the url.
URL_ACCEPT_APP = "http://opiums.eu/vk4xmpp.html#%d"
# Image that will be used if the transport can't recieve image from VK.
URL_VCARD_NO_IMAGE = "https://raw.githubusercontent.com/mrDoctorWho/vk4xmpp/master/vk4xmpp.png"
# Allow registration.
# Set to false if you want to forbid registration of new users.
# Old users will be able to update their registration.
ALLOW_REGISTRATION = True
# Friends limit per user.
MAX_FRIENDS = 5000
#! Danger zone.
#! Change the settings below ONLY IF YOU KNOW WHAT ARE YOU DOING! DEFAULT VALUES ARE RECOMMENDED!
# You were warned.
# Thread stack size (WARNING: THIS MAY CAUSE TRANSPORT CRASH WITH SEGMENTATION FAULT ERROR).
# You may need to tune it to optimize memory consuming.
# Minimum value is 32768 bytes (32kb).
THREAD_STACK_SIZE = 0
# Database file (anything you like).
DatabaseFile = "vk4xmpp.sqlite"
# File to store PID in.
pidFile = "vk4xmpp.pid"
# Log file.
logFile = "vk4xmpp.log"
# Directory where transport will write crash logs.
crashDir = "crash"
# Directory for users settings.
settingsDir = "settings"
# Stanza send interval (in seconds).
STANZA_SEND_INTERVAL = 0.03125
# Debug xmpppy library.
DEBUG_XMPPPY = False
# Debug longpoll queries.
DEBUG_POLL = False
# Debug api requests.
# Put the list of the methods you like to debug. Set to "all" if you want to debug all the methods.
DEBUG_API = []
# Log level (logging.INFO, logging.DEBUG, logging.ERROR, logging.CRITICAL).
LOG_LEVEL = logging.ERROR
# VK4XMPP Monitor settings
# The server where the stats requests will come from
VK4XMPP_MONITOR_SERVER = "opiums.eu"
# The URL where transport should send POST requests with it's name
# See https://github.com/aawray/xmpp-monitor for more information
VK4XMPP_MONITOR_URL = "http://torrent.opiums.eu/hosts_xmpp.php"
# THE FOLLOWING OPTIONS ARE FOR POSIX-LIKE SYSTEMS ONLY
# Run as a specified user. Set to "username" to run as "username" instead of current user.
# Bear in mind that transport must have permission to run as this user.
RUN_AS = None