summaryrefslogtreecommitdiffstats
path: root/py-bin/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'py-bin/config.py')
-rw-r--r--py-bin/config.py44
1 files changed, 44 insertions, 0 deletions
diff --git a/py-bin/config.py b/py-bin/config.py
new file mode 100644
index 0000000..2dd0fe8
--- /dev/null
+++ b/py-bin/config.py
@@ -0,0 +1,44 @@
+#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_\-.]+$'
+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"}
+