-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.example.py
50 lines (38 loc) · 1.26 KB
/
config.example.py
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
"""Main configuration file. Can either pull from the
environment or from this file.
"""
from faqbot.config import MAIL_BOX
import os
"""
===== WEB SPECIFIC =====
"""
# What's this app called?
APP_NAME = os.environ.get("APP_NAME", "faqbot")
# App network port.
PORT = os.environ.get("PORT", 8114)
# Is the app running in debug mode?
DEBUG = bool(os.environ.get("DEBUG", False))
# Secret for JWTs.
SECRET = os.environ.get("SECRET", "CHANGE THIS")
# Admin password.
ADMIN_PASSWORD = os.environ.get("ADMIN_PASSWORD", "P9Jt_B=uMvgu6#EG")
"""
===== MAIL SPECIFIC =====
"""
# IMAP server details.
IMAP_SERVER = ["imap.gmail.com"] # if you have a custom Port [serverDNS, port]
SMTP_SERVER = ["smtp.gmail.com"] # if you have a custom Port [serverDNS, port]
MAIL_USER = "admin@hackmit.org"
MAIL_PASSWORD = "CHANGE THIS"
MAIL_BOX = "[Gmail]/All Mail"
# SMTP server details.
SEND_MAIL_USER = MAIL_USER
SEND_MAIL_PASSWORD = MAIL_PASSWORD
MAIL_FROM = "team@hackmit.org"
# This footer is appended at the end of _every_ email
# sent by this bot. Just to make sure people can reach
# out again if they want to.
FOOTER = """
<br><br> <i>~~ This was an automated message, please <a href="mailto:team@hackmit.org">email us</a> again if this didn't help! ~~</i>
"""
TRIGGERS = ["@faqbot", "@fb"]