github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/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  Alternate OAuth Host (optional, for custom domains, like "g8r.k8s.io:443"): <input type="text" name="github_client_host"><br>
    12  <hr>
    13  <p>This value must match whatever is entered on GitHub when registering hooks to receive.
    14  <p>GitHub Webhook Secret: <input type="text" name="github_webhook_secret"><br>
    15  <hr>
    16  <p>This Token is used to periodically synchronize PR status stored in the database with GitHub.
    17  <p>This prevents dropped hooks and other bugs from causing stale PRs to linger in users' dashboards.
    18  <p>GitHub Token: <input type="text" name="github_token"><br>
    19  <input type="submit" value="Submit">
    20  </form>
    21  % if oauth_set
    22  <h2>OAuth secrets set!</h2>
    23  % endif
    24  % if webhook_set
    25  <h2>Github Webhook secret set!</h2>
    26  % endif
    27  % if token_set
    28  <h2>Github Token set!</h2>
    29  % endif
    30  % endblock