Repository navigation
Expand file tree
/
Copy pathrapidsms.ini.example
More file actions
executable file
·130 lines (111 loc) · 3.65 KB
/
Copy pathrapidsms.ini.example
File metadata and controls
executable file
·130 lines (111 loc) · 3.65 KB
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
125
126
127
128
129
# RapidSMS configuration file.
# -- RAPIDSMS
#
# The main configuration of the RapidSMS server. It contains a list of
# apps and backends to run, which can be names of app classes, or (in the
# case of multiple apps or backends of the same type) names for apps of
# the same type (see APPS and BACKENDS sections below).
#
# apps=[app1,app2,app3,...] * comma-separated list of apps to load
# backends=[backend1,backend2,...] * comma-separated list of backends to load
[rapidsms]
apps=webui,admin,userprofile,smsforum,nodegraph,contacts,logger,locations,tagging,tostan,patterns,reporters,django_extensions
backends=http,gsm
# Database configuration info.
#
# engine={sqlite3,mysql,postgresql,oracle,postgresql_psycopg2} * defaults to sqlite3
# name=<database-name>
# user=<database-user> * defaults to root
# password=<database-password> * defaults to empty string
# host=<datbase-host> * defaults to localhost (empty string)
# port=<database-port> * not used for sqlite3
[database]
engine=mysql
name=rapidsms_tostan_dec_15_migration
user=admin
password=tostan
host=localhost
#port=
# -- LOG
#
# Configure the built-in log module of RapidSMS.
#
# level={debug,info,warning,error,critical} * defaults to debug
# file=<full-path-to-log-file> * defaults to /tmp/rapidsms.log
[log]
level=debug
file=/var/log/rapidsms/rapidsms.log
# -- APPS
#
# In this area you can define configurations for individual applications. The app
# must be listed under the section [rapidsms] in "apps". If no configuration is
# listed for your app it will use the default parameters. However, if you wish to
# run two apps of the same type, you MUST define configure them explicitly here.
[httptester]
host=localhost
port=8080
[webui]
anon_perms = ['bednets.can_view']
#login_redirect_url=/
[smsforum]
default_lang=fr
#admin_cmd_pwd=0000
[logtracker]
# this duplicates the email backend
# because we want logtracker to work in runserver
# independent of whether the email backend is set up in route
smtp_host=smtp.gmail.com
smtp_port=587
# define incoming host
imap_host=
# define incoming port
imap_port=
username=
password=
default_alert_email=jokkoinitiative@gmail.com
log_threshold=30
alert_threshold=40
# -- BACKENDS
#
# In this area you can define configurations for individual backends. The backend
# must be listed under the section [rapidsms] in "backends". If no configuration is
# listed for your backend it will use the default parameters. However, if you wish to
# run two backends of the same type, you MUST define configure them explicitly here.
[gsm]
port=/dev/ttyUSB0
baudrate=115200
rtscts=1
modem_log=/var/log/rapidsms/gsmmodem.log
modem_log_level=debug
[http]
port=8080
[uptime]
type=http
host=0.0.0.0
port=8001
handler=UptimeHandler
[email]
smtp_host=smtp.gmail.com
smtp_port=587
username=
password=
# -- DJANGO
#
# In this area you can define configuration options for django that would usually
# go into your settings.py file. There's no need to make the variables uppercase
# also do not specify strings by surrounding them with the quotes " or '. This
# is automatically taken care of before injecting it into django's core configuration
[django]
AUTH_PROFILE_MODULE=tostan.tostanprofile
USERPROFILE_MEDIA_ROOT=apps/userprofile/static
login_redirect_url=/
USE_DJANGO_STATIC_SERVER=True
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_HOST_USER=
EMAIL_HOST_PASSWORD=
EMAIL_USE_TLS=True
# hm, Schuyler's local settings.py doesn't seem to work on this rapidsms
# hack to get login url changed temporarily
LOGIN_URL=login
LOGOUT_URL=logout