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
|
# Force usage of https
|
||||||
if ($scheme = http) {
|
if ($scheme = http) {
|
||||||
|
|
|
@ -5,10 +5,10 @@ from github_webhook import Webhook
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
from make_readme import generate_READMEs
|
from make_readme import generate_READMEs
|
||||||
|
|
||||||
app = Flask(__name__) # Standard Flask app
|
app = Flask(__name__)
|
||||||
webhook = Webhook(app) # Defines '/postreceive' endpoint
|
|
||||||
|
|
||||||
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()
|
login = open("login").read().strip()
|
||||||
token = open("token").read().strip()
|
token = open("token").read().strip()
|
||||||
|
|
Loading…
Reference in a new issue