Skip to content

Commit

Permalink
feat(scm): Update SCM settings examples (#5262)
Browse files Browse the repository at this point in the history
Our examples were outdated, and made confusion to our client.

Co-authored-by: Marcin Jasion <[email protected]>
  • Loading branch information
mjasion and mjasion authored Jun 12, 2024
1 parent bd6ffaf commit cf310f3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ marked with `<>` with the values the steps above:
```yaml
global:
scmProviders:
# Optional
# This is useful in cases where DVC Studio is on an internal
# network, but the webhook endpoint is on an external network.
# Default: `global.host` value.
#webhookHost: ""

github:
enabled: true

Expand All @@ -63,9 +69,4 @@ global:
clientId: <GitHub OAuth App Client ID>
clientSecret: <GitHub OAuth App Client Secret>
privateKey: <GitHub OAuth App Private Key>

# Optional
# This is useful in cases where DVC Studio is on an internal
# network, but the webhook endpoint is on an external network
# webhookUrl: https://webhook.studio.company.com/webhook/github/
```
29 changes: 15 additions & 14 deletions content/docs/studio/self-hosting/configuration/git-forges/gitlab.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,23 @@ got created:
Merge the `values.yaml` file with the following contents:

```yaml
scmProviders:
gitlab:
enabled: true

# Set this if you're hosting GitLab on a
# custom domain
url: ''

clientId: <GitLab OAuth App Client ID>
secretKey: <GitLab OAuth App Secret Key>
webhookSecret: <GitLab Webhook Secret>

global:
scmProviders:
# Optional
# This is useful in cases where DVC Studio is on an internal
# network, but the webhook endpoint is on an external network
# webhookUrl: https://webhook.studio.company.com/webhook/gitlab/
# network, but the webhook endpoint is on an external network.
# Default: `global.host` value.
#webhookHost: ""
gitlab:
enabled: true

# Set this if you're hosting GitLab on a
# custom domain
url: <GitLab URL>

clientId: <GitLab OAuth App Client ID>
secretKey: <GitLab OAuth App Secret Key>
webhookSecret: <GitLab Webhook Secret>
```
<admon type="info">
Expand Down

0 comments on commit cf310f3

Please sign in to comment.