- Remove on-premise Nx Cloud docs from navigation - Expand single tenant Nx Cloud documentation
3.9 KiB
Custom GitHub App
Before creating your container, you'll need to create a GitHub app for your organisation.
Creating a GitHub OAuth app
From GitHub, click on your profile picture and chose "Settings":
Then "Developer settings" from the left-hand menu:
Then "GitHub Apps":
And create a new GitHub app:
Give it a name, and a homepage URL. The callback URL is the important bit. It needs to be in this form:
[your-nx-cloud-url]/callbacks/github-user
# for example
https://my.nx-enterprise.url:8080/callbacks/github-user
Once you create the app, keep a note of the Client ID and App ID:
Then generate a new client secret, and save it somewhere secure (we'll use it in a bit):
Configure Permissions for the GitHub App
The following permissions are required for Nx Cloud to work:
Repository permissions:
Contents: Read & WritePull requests: Read & WriteChecks: Read OnlyCommit Statuses: Read & WriteIssues: Read & WriteMetadata: Read Only
Organization permissions:
Administration: Read OnlyMembers: Read Only
Configure Nx Cloud Installation
Using Helm:
image:
tag: 'latest'
nxCloudAppURL: 'https://nx-cloud.myorg.com'
github:
auth:
enabled: true
secret:
name: 'cloudsecret'
githubAppClientId: 'NX_CLOUD_GITHUB_APP_CLIENT_ID'
githubAppClientSecret: 'NX_CLOUD_GITHUB_APP_CLIENT_SECRET'
githubAppId: 'NX_CLOUD_GITHUB_APP_APP_ID'
Note that the secret must contain NX_CLOUD_GITHUB_APP_CLIENT_ID, NX_CLOUD_GITHUB_APP_APP_ID, and NX_CLOUD_GITHUB_APP_CLIENT_SECRET (
see Nx Cloud Helm Charts for more context).
Not using Helm:
Provide the following env variables to the nx-cloud-frontend container:
NX_CLOUD_GITHUB_APP_CLIENT_IDNX_CLOUD_GITHUB_APP_CLIENT_SECRETNX_CLOUD_GITHUB_APP_APP_ID
{% callout title="Helm Chart Environment Variables" %} If you are using our Helm chart, you can find all the information you need about env variables in the Helm chart repository. {% /callout %}





