diff --git a/README.md b/README.md index 5ae1fdc3..90337af3 100644 --- a/README.md +++ b/README.md @@ -246,8 +246,8 @@ $ openssl req -new -out reqout.txt -key server.key ``` $ openssl x509 -req -in reqout.txt -days 3650 -sha1 -CAcreateserial -CA root.crt -CAkey servercakey.pem -out server.crt ``` - -6. Move your `server.crt` and `server.key` files into the root of the project. (Level above src) + +6. Move your `server.crt` and `server.key` files into the `src` folder. 7. Set the environment variable `SSL_CERT_FILE` to the name of your `server.crt` file and the variable `SSL_KEY_FILE` to the name of your `server.key` file. diff --git a/src/esportsbot/cogs/TwitchCog.py b/src/esportsbot/cogs/TwitchCog.py index 268b4060..00488591 100644 --- a/src/esportsbot/cogs/TwitchCog.py +++ b/src/esportsbot/cogs/TwitchCog.py @@ -442,8 +442,8 @@ def setup_http_listener(): # Setup the TwitchListener to listen for /webhook requests. app = TwitchApp([(r"/webhook", TwitchListener)]) http_server = HTTPServer(app, - ssl_options={"certfile": f"../{os.getenv('SSL_CERT_FILE')}", - "keyfile": f"../{os.getenv('SSL_KEY_FILE')}"} + ssl_options={"certfile": f"{os.getenv('SSL_CERT_FILE')}", + "keyfile": f"{os.getenv('SSL_KEY_FILE')}"} ) http_server.listen(443) return http_server, app