Listen on all interfaces, add port to Dockerfile
This commit is contained in:
parent
6152aebc6d
commit
6b9e252107
@ -20,4 +20,6 @@ RUN pip3 install -r /data/requirements.txt && \
|
||||
|
||||
#USER python
|
||||
|
||||
EXPOSE 1025
|
||||
|
||||
CMD [ "/usr/bin/python3", "/data/smtp2slack4qnap.py" ]
|
||||
|
||||
@ -28,7 +28,7 @@ USER = 'username'
|
||||
SECRET = '1c18f3a76a7ad787ee1d5aea573bd51db1e559b85bbc4a3228076442e9a0bc90'
|
||||
|
||||
# SMTP listener (set to localhost if running on QNAP device)
|
||||
LHOST, LPORT = '192.168.0.50', 1025
|
||||
LHOST, LPORT = '0.0.0.0', 1025
|
||||
|
||||
# target slack authenticated webhook url (keep confidential!)
|
||||
WEBHOOK_URL = 'https://hooks.slack.com/services/XXXXXXXXX/YYYYYYYYY/aaaaaaaaaaaaaaaaaaaaaaaa'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user