summaryrefslogtreecommitdiff
path: root/doc/update/8.17-to-9.0.md
blob: 4cc8be752c42d6d027e067a9d388bda16a3a0736 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#### Configuration changes for repository storages

This version introduces a new configuration structure for repository storages.
Update your current configuration as follows, replacing with your storages names and paths:

**For installations from source**

1. Update your `gitlab.yml`, from

  ```yaml
  repositories:
    storages: # You must have at least a 'default' storage path.
      default: /home/git/repositories
      nfs: /mnt/nfs/repositories
      cephfs: /mnt/cephfs/repositories
  ```

  to

  ```yaml
  repositories:
    storages: # You must have at least a 'default' storage path.
      default:
        path: /home/git/repositories
      nfs:
        path: /mnt/nfs/repositories
      cephfs:
        path: /mnt/cephfs/repositories
  ```

**For Omnibus installations**

1. Upate your `/etc/gitlab/gitlab.rb`, from

  ```ruby
  git_data_dirs({
    "default" => "/var/opt/gitlab/git-data",
    "nfs" => "/mnt/nfs/git-data",
    "cephfs" => "/mnt/cephfs/git-data"
  })
  ```

  to

  ```ruby
  git_data_dirs({
    "default" => { "path" => "/var/opt/gitlab/git-data" },
    "nfs" => { "path" => "/mnt/nfs/git-data" },
    "cephfs" => { "path" => "/mnt/cephfs/git-data" }
  })
  ```

#### Git configuration

Configure Git to generate packfile bitmaps (introduced in Git 2.0) on
the GitLab server during `git gc`.

```sh
cd /home/git/gitlab

sudo -u git -H git config --global repack.writeBitmaps true
```

#### Nginx configuration

Ensure you're still up-to-date with the latest NGINX configuration changes:

```sh
cd /home/git/gitlab

# For HTTPS configurations
git diff origin/8-17-stable:lib/support/nginx/gitlab-ssl origin/9-0-stable:lib/support/nginx/gitlab-ssl

# For HTTP configurations
git diff origin/8-17-stable:lib/support/nginx/gitlab origin/9-0-stable:lib/support/nginx/gitlab
```

If you are using Strict-Transport-Security in your installation to continue using it you must enable it in your Nginx
configuration as GitLab application no longer handles setting it.

If you are using Apache instead of NGINX please see the updated [Apache templates].
Also note that because Apache does not support upstreams behind Unix sockets you
will need to let gitlab-workhorse listen on a TCP port. You can do this
via [/etc/default/gitlab].

[Apache templates]: https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/web-server/apache
[/etc/default/gitlab]: https://gitlab.com/gitlab-org/gitlab-ce/blob/9-0-stable/lib/support/init.d/gitlab.default.example#L38