Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ff2c1d6d
Commit
ff2c1d6d
authored
Apr 09, 2019
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add config for dependency proxy feature
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
f25b7ac6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
config/gitlab.yml.example
config/gitlab.yml.example
+21
-0
config/initializers/1_settings.rb
config/initializers/1_settings.rb
+13
-0
No files found.
config/gitlab.yml.example
View file @
ff2c1d6d
...
...
@@ -248,6 +248,27 @@ production: &base
# aws_signature_version: 4 # For creation of signed URLs. Set to 2 if provider does not support v4.
# path_style: true # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
## Dependency Proxy
dependency_proxy:
enabled: true
# The location where build packages are stored (default: shared/dependency_proxy).
# storage_path: shared/dependency_proxy
object_store:
enabled: false
remote_directory: dependency_proxy # The bucket name
# direct_upload: false # Use Object Storage directly for uploads instead of background uploads if enabled (Default: false)
# background_upload: false # Temporary option to limit automatic upload (Default: true)
# proxy_download: false # Passthrough all downloads via GitLab instead of using Redirects to Object Storage
connection:
provider: AWS
aws_access_key_id: AWS_ACCESS_KEY_ID
aws_secret_access_key: AWS_SECRET_ACCESS_KEY
region: us-east-1
# host: 'localhost' # default: s3.amazonaws.com
# endpoint: 'http://127.0.0.1:9000' # default: nil
# aws_signature_version: 4 # For creation of signed URLs. Set to 2 if provider does not support v4.
# path_style: true # Use 'host/bucket_name/object' instead of 'bucket_name.host/object'
## GitLab Pages
pages:
enabled: false
...
...
config/initializers/1_settings.rb
View file @
ff2c1d6d
...
...
@@ -294,6 +294,19 @@ Settings.packages['enabled'] = true if Settings.packages['enabled'].nil?
Settings
.
packages
[
'storage_path'
]
=
Settings
.
absolute
(
Settings
.
packages
[
'storage_path'
]
||
File
.
join
(
Settings
.
shared
[
'path'
],
"packages"
))
Settings
.
packages
[
'object_store'
]
=
ObjectStoreSettings
.
parse
(
Settings
.
packages
[
'object_store'
])
#
# Dependency Proxy
#
Settings
[
'dependency_proxy'
]
||=
Settingslogic
.
new
({})
Settings
.
dependency_proxy
[
'enabled'
]
=
true
if
Settings
.
dependency_proxy
[
'enabled'
].
nil?
Settings
.
dependency_proxy
[
'storage_path'
]
=
Settings
.
absolute
(
Settings
.
dependency_proxy
[
'storage_path'
]
||
File
.
join
(
Settings
.
shared
[
'path'
],
"dependency_proxy"
))
Settings
.
dependency_proxy
[
'object_store'
]
=
ObjectStoreSettings
.
parse
(
Settings
.
dependency_proxy
[
'object_store'
])
# For first iteration dependency proxy uses Rails server to download blobs.
# To ensure acceptable performance we only allow feature to be used with
# multithreaded web-server Puma. This will be removed once download logic is moved
# to GitLab workhorse
Settings
.
dependency_proxy
[
'enabled'
]
=
false
unless
defined?
(
::
Puma
)
#
# Mattermost
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment