diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 13:00:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 13:00:54 +0300 |
commit | 3cccd102ba543e02725d247893729e5c73b38295 (patch) | |
tree | f36a04ec38517f5deaaacb5acc7d949688d1e187 /doc/administration/packages/dependency_proxy.md | |
parent | 205943281328046ef7b4528031b90fbda70c75ac (diff) |
Add latest changes from gitlab-org/gitlab@14-10-stable-eev14.10.0-rc42
Diffstat (limited to 'doc/administration/packages/dependency_proxy.md')
-rw-r--r-- | doc/administration/packages/dependency_proxy.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/administration/packages/dependency_proxy.md b/doc/administration/packages/dependency_proxy.md index 93c6585230f..4c50cfeeb0f 100644 --- a/doc/administration/packages/dependency_proxy.md +++ b/doc/administration/packages/dependency_proxy.md @@ -264,3 +264,29 @@ Feature.disable(:dependency_proxy_for_private_groups) # Re-enable the authentication Feature.enable(:dependency_proxy_for_private_groups) ``` + +## Changing the JWT expiration + +The Dependency Proxy follows the [Docker v2 token authentication flow](https://docs.docker.com/registry/spec/auth/token/), +issuing the client a JWT to use for the pull requests. The token expiration time is a configurable +using the application setting `container_registry_token_expire_delay`. It can be changed from the +rails console: + +```ruby +# update the JWT expiration to 30 minutes +ApplicationSetting.update(container_registry_token_expire_delay: 30) +``` + +The default expiration and the expiration on GitLab.com is 15 minutes. + +## Using the dependency proxy behind a proxy + +1. Edit `/etc/gitlab/gitlab.rb` and add the following lines: + + ```ruby + gitlab_workhorse['env'] = { + "http_proxy" => "http://USERNAME:PASSWORD@example.com:8080", + "https_proxy" => "http://USERNAME:PASSWORD@example.com:8080" + ``` + +1. Save the file and [reconfigure GitLab](../restart_gitlab.md#omnibus-gitlab-reconfigure) for the changes to take effect. |