summaryrefslogtreecommitdiffstats
path: root/py-bin/config.py-dist
blob: fff61bea5a90e0e4bd65db4b55dfc52e6024fe6c (plain)
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
#webreg global config file

# debug mode: for testing only!!!
# never ever activate on production server!
debugmode = False

# mail configuration:
mail_from_addr = "jabber@domain1.ch"
# to use sendmail for delivery, use this:
use_sendmail = True
# to use python smtplib, configure these smtp options
#smtp_server = "mail.domain1.ch"
# if you comment out user/pass, no smtp auth will be done
#smtp_user = ""
#smtp_pass = ""

# domain name policy
mail_domains = ["domain1.ch", "domain2.ch"
extra_domains = ["domain3.ch"]
# username and password policy
user_re ='^[a-zA-Z0-9_\-.]+$'
forbidden_users = ['admin', 'administrator']
password_re = '^[a-zA-Z0-9_\-.]+$'
min_password_length = debugmode and 2 or 8

# path configuration
# keep templates and all code except main.py outside doc-root!
template_dir = "/var/www/jabber/py-bin/templates"
# keep the following stuff on an encrypted fs! (especially sessions)
session_dir = "/tmp"
jabberdb_path = "/var/db/jabberman/jabber_db"
logfile_path = "/var/log/lighttpd/webreg.log"

# self reference, needed for http redirects
script_url = "https://www.domain1.ch/main.py"

# secret needed for session ids and registration tokens
# change it to your own!
the_secret = "ahfkahfkjhaskjfhaskjfhaskjfhafhh"

#experimental stuff...
ejabberdctl_path = "/usr/sbin/ejabberdctl"
ejabberdctl_environ = {"PATH":"/bin:/usr/bin", "HOME":"/e/e1/home/lighttpd"}