github.com/yrj2011/jx-test-infra@v0.0.0-20190529031832-7a2065ee98eb/gubernator/templates/config.html (about) 1 % extends 'base.html' 2 % block header 3 <h1>Gubernator Admin Config Page</h1> 4 % endblock 5 % block content 6 <form method="post"> 7 <p>These values come from the <a href="https://github.com/settings/developers">OAuth Apps Tab</a> on Github. 8 <p>New apps should be registered with "Homepage URL" set to https://{{hostname}} and "Authorization callback URL" set to https://{{hostname}}/github_auth. 9 <p>GitHub OAuth Client Id: <input type="text" name="github_id"><br> 10 GitHub OAuth Client Secret: <input type="text" name="github_secret"><br> 11 <hr> 12 <p>This value must match whatever is entered on GitHub when registering hooks to receive. 13 <p>GitHub Webhook Secret: <input type="text" name="github_webhook_secret"><br> 14 <hr> 15 <p>This Token is used to periodically synchronize PR status stored in the database with GitHub. 16 <p>This prevents dropped hooks and other bugs from causing stale PRs to linger in users' dashboards. 17 <p>GitHub Token: <input type="text" name="github_token"><br> 18 <input type="submit" value="Submit"> 19 </form> 20 % if oauth_set 21 <h2>OAuth secrets set!</h2> 22 % endif 23 % if webhook_set 24 <h2>Github Webhook secret set!</h2> 25 % endif 26 % if token_set 27 <h2>Github Token set!</h2> 28 % endif 29 % endblock