Add environment variables for config
This commit is contained in:
parent
0a6a0c4e6f
commit
6292af08e6
2 changed files with 16 additions and 7 deletions
12
logbot.py
12
logbot.py
|
@ -79,12 +79,12 @@ def urlify2(value):
|
|||
DEBUG = False
|
||||
|
||||
# IRC Server Configuration
|
||||
SERVER = "irc.freenode.net"
|
||||
PORT = 6667
|
||||
SERVER_PASS = None
|
||||
CHANNELS=["#pelux"]
|
||||
NICK = "pelux"
|
||||
NICK_PASS = ""
|
||||
SERVER = os.getenv("IRC_SERVER", "irc.freenode.net")
|
||||
PORT = os.getenv("IRC_PORT", 6667)
|
||||
SERVER_PASS = os.getenv("IRC_SERVER_PASS", None)
|
||||
CHANNELS = os.getenv("IRC_CHANNELS", "#pelux").split(",")
|
||||
NICK = os.getenv("IRC_NICK", "pelux")
|
||||
NICK_PASS = os.getenv("IRC_NICK_PASS", "")
|
||||
|
||||
# The local folder to save logs
|
||||
LOG_FOLDER = "/var/www/html/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue