summaryrefslogtreecommitdiffstats
path: root/py-bin/config.py
blob: 37e5c669d4efd19ed0dc820fee4ca0fdbc6ff8e4 (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
45
#webreg global config file

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

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

# domain name policy
mail_domains = ["immerda.ch", "cronopios.org", "einfachsicher.ch"]
extra_domains = ["imsg.ch", "unerkenntli.ch", "auchno.ch"] #x adapt to existing ones!
# username and password policy
user_re ='^[a-zA-Z0-9_\-.]+$'
forbidden_users = ['admin', 'administrator']
password_re = '^[a-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 = "/e/e1/var/www/jabber/py-bin/templates"
# keep the following stuff on an encrypted fs! (especially sessions)
session_dir = "/e/e1/tmp"
jabberdb_path = "/e/e1/var/db/jabberman/jabber_db"
logfile_path = "/e/e1/var/log/lighttpd/webreg.log"

# self reference, needed for http redirects
#script_url = "https://jabber.immerda.ch:60843/main.py"
script_url = "https://127.0.0.1:8000/main.py"

# secret needed for session ids and registration tokens
the_secret = "w1bXM13wHSI5BWrtMs97Cwxf7qWjL1xu"

#experimental stuff...
#x check again
ejabberdctl_path = "/e/e1/opt/ejabberd/bin/ejabberdctl"
ejabberdctl_environ = {"PATH":"/bin:/usr/bin", "HOME":"/e/e1/home/lighttpd"}