Configure GitHub OAuth

Create a GitHub OAuth App so GitHub can return a verified primary email address to Coolify after sign-in.

Example data

Replace the example domain while following this guide:

  • Coolify URL: https://coolify.shadowarcanist.com
  • Authorization callback URL: https://coolify.shadowarcanist.com/auth/github/callback

Set up GitHub OAuth

Open GitHub OAuth Apps

Open GitHub Developer settings, select OAuth Apps, then select New OAuth App.

To let an organization own the credential, open that organization's settings and create the OAuth App there instead. You need permission to manage OAuth Apps for the selected account or organization.

Register the Coolify application

Complete the GitHub form:

GitHub fieldValue
Application nameA recognizable name such as Coolify.
Homepage URLThe public Coolify URL, such as https://coolify.shadowarcanist.com.
Application descriptionOptional information for people authorizing the app.
Authorization callback URLhttps://coolify.shadowarcanist.com/auth/github/callback

Select Register application.

Use a separate app for another Coolify domain

A GitHub OAuth App has one callback URL. Create another OAuth App when a second Coolify instance uses a different public domain.

Create the client secret

On the OAuth App page, copy Client ID, then select Generate a new client secret.

Copy the generated client secret and store it securely. You need the complete secret in Coolify.

Configure GitHub in Coolify

In Coolify, open Settings > OAuth and find GitHub.

Coolify fieldGitHub value
Client IDThe GitHub OAuth App client ID.
Client SecretThe generated GitHub client secret.
Redirect URIhttps://coolify.shadowarcanist.com/auth/github/callback

Select Save, then turn on Enabled for GitHub.

Verify GitHub sign-in

Open the Coolify login page in a private browser window and select Login with GitHub. Authorize the OAuth App if GitHub asks, then confirm that Coolify opens the account with the same email address as the verified primary GitHub email.

Troubleshooting

On this page