softdevteam / mattermost-github-integration

GitHub integration for Mattermost
Other
79 stars 50 forks source link

HTTPS support (without ssl verification) #34

Closed megaerki closed 6 years ago

megaerki commented 7 years ago

Changed server.py and added:

1) import os under other imports

2) ASSETS_DIR = os.path.dirname(os.path.abspath(file)) after SECRET

3) context = ('/path/to/cert.pem', 'path/to/privkey.pem') before app.run(...

4) ssl_context=context after debug=False inside app.run(..)

Now Github hooks starting with HTTPS://... work as well. SSL verification must be turned off however.