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
0b97d2d1
Commit
0b97d2d1
authored
Jul 16, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
e7fe81d1
9fbf702d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
69 additions
and
0 deletions
+69
-0
doc/administration/uploads.md
doc/administration/uploads.md
+69
-0
No files found.
doc/administration/uploads.md
View file @
0b97d2d1
...
@@ -140,6 +140,75 @@ _The uploads are stored by default in
...
@@ -140,6 +140,75 @@ _The uploads are stored by default in
1.
Save the file and
[
restart GitLab
][]
for the changes to take effect.
1.
Save the file and
[
restart GitLab
][]
for the changes to take effect.
1.
Migrate any existing local uploads to the object storage using
[
`gitlab:uploads:migrate` rake task
](
raketasks/uploads/migrate.md
)
.
1.
Migrate any existing local uploads to the object storage using
[
`gitlab:uploads:migrate` rake task
](
raketasks/uploads/migrate.md
)
.
### OpenStack compatible connection settings
The connection settings match those provided by
[
Fog
](
https://github.com/fog
)
, and are as follows:
| Setting | Description | Default |
|---------|-------------|---------|
|
`provider`
| Always
`OpenStack`
for compatible hosts | OpenStack |
|
`openstack_username`
| OpenStack username | |
|
`openstack_api_key`
| OpenStack api key | |
|
`openstack_temp_url_key`
| OpenStack key for generating temporary urls | |
|
`openstack_auth_url`
| OpenStack authentication endpont | |
|
`openstack_region`
| OpenStack region | |
|
`openstack_tenant`
| OpenStack tenant ID |
**In Omnibus installations:**
_The uploads are stored by default in
`/var/opt/gitlab/gitlab-rails/public/uploads/-/system`
._
1.
Edit
`/etc/gitlab/gitlab.rb`
and add the following lines by replacing with
the values you want:
```
ruby
gitlab_rails
[
'uploads_object_store_remote_directory'
]
=
"OPENSTACK_OBJECT_CONTAINER_NAME"
gitlab_rails
[
'uploads_object_store_connection'
]
=
{
'provider'
=>
'OpenStack'
,
'openstack_username'
=>
'OPENSTACK_USERNAME'
,
'openstack_api_key'
=>
'OPENSTACK_PASSWORD'
,
'openstack_temp_url_key'
=>
'OPENSTACK_TEMP_URL_KEY'
,
'openstack_auth_url'
=>
'https://auth.cloud.ovh.net/v2.0/'
,
'openstack_region'
=>
'DE1'
,
'openstack_tenant'
=>
'TENANT_ID'
,
}
```
1.
Save the file and
[
reconfigure GitLab
][]
for the changes to take effect.
1.
Migrate any existing local uploads to the object storage using
[
`gitlab:uploads:migrate` rake task
](
raketasks/uploads/migrate.md
)
.
---
**In installations from source:**
_The uploads are stored by default in
`/home/git/gitlab/public/uploads/-/system`
._
1.
Edit
`/home/git/gitlab/config/gitlab.yml`
and add or amend the following
lines:
```
yaml
uploads
:
object_store
:
enabled
:
true
direct_upload
:
false
background_upload
:
true
proxy_download
:
false
remote_directory
:
OPENSTACK_OBJECT_CONTAINER_NAME
connection
:
provider
:
OpenStack
openstack_username
:
OPENSTACK_USERNAME
openstack_api_key
:
OPENSTACK_PASSWORD
openstack_temp_url_key
:
OPENSTACK_TEMP_URL_KEY
openstack_auth_url
:
'
https://auth.cloud.ovh.net/v2.0/'
openstack_region
:
DE1
openstack_tenant
:
'
TENANT_ID'
```
1.
Save the file and
[
reconfigure GitLab
][]
for the changes to take effect.
1.
Migrate any existing local uploads to the object storage using
[
`gitlab:uploads:migrate` rake task
](
raketasks/uploads/migrate.md
)
.
[
reconfigure gitlab
]:
restart_gitlab.md#omnibus-gitlab-reconfigure
"How to reconfigure Omnibus GitLab"
[
reconfigure gitlab
]:
restart_gitlab.md#omnibus-gitlab-reconfigure
"How to reconfigure Omnibus GitLab"
[
restart gitlab
]:
restart_gitlab.md#installations-from-source
"How to restart GitLab"
[
restart gitlab
]:
restart_gitlab.md#installations-from-source
"How to restart GitLab"
[
eep
]:
https://about.gitlab.com/gitlab-ee/
"GitLab Premium"
[
eep
]:
https://about.gitlab.com/gitlab-ee/
"GitLab Premium"
...
...
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