1
0
Fork 0

Use /github as endpoint

This commit is contained in:
Alexandre Aubin 2021-05-21 20:17:02 +02:00
parent 249307a849
commit 7678877629
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
location / {
location /github {
# Force usage of https
if ($scheme = http) {

View file

@ -5,10 +5,10 @@ from github_webhook import Webhook
from flask import Flask
from make_readme import generate_READMEs
app = Flask(__name__) # Standard Flask app
webhook = Webhook(app) # Defines '/postreceive' endpoint
app = Flask(__name__)
webhook.secret = open("github_webhook_secret", "r").read().strip()
github_webhook_secret = open("github_webhook_secret", "r").read().strip()
webhook = Webhook(app, endpoint="/github", secret=github_webhook_secret)
login = open("login").read().strip()
token = open("token").read().strip()