Use /github as endpoint
This commit is contained in:
parent
249307a849
commit
7678877629
2 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
location / {
|
||||
location /github {
|
||||
|
||||
# Force usage of https
|
||||
if ($scheme = http) {
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue