diff --git a/doc/installation/index.md b/doc/installation/index.md index 88417e4159e2d62bb213beb25a031fbe77a14591_ZG9jL2luc3RhbGxhdGlvbi9pbmRleC5tZA==..f0ae2e0836fcb019d2551704c5808620bacf4538_ZG9jL2luc3RhbGxhdGlvbi9pbmRleC5tZA== 100644 --- a/doc/installation/index.md +++ b/doc/installation/index.md @@ -59,7 +59,12 @@ - Pass the `GITLAB_ROOT_PASSWORD` environment variable to the [installation command](https://about.gitlab.com/install/) provided - the hostname for the server is set up correctly. + the hostname for the server is set up correctly: + + ```shell + sudo GITLAB_ROOT_PASSWORD="<strongpassword>" EXTERNAL_URL="http://gitlab.example.com" apt install gitlab-ee + ``` + If during the installation GitLab doesn't automatically perform a reconfigure, you have to pass the `GITLAB_ROOT_PASSWORD` variable to the first `gitlab-ctl reconfigure` run. @@ -63,6 +68,7 @@ If during the installation GitLab doesn't automatically perform a reconfigure, you have to pass the `GITLAB_ROOT_PASSWORD` variable to the first `gitlab-ctl reconfigure` run. + - Before the first reconfigure, edit `/etc/gitlab/gitlab.rb` (create it if it doesn't exist) and set: diff --git a/doc/settings/configuration.md b/doc/settings/configuration.md index 88417e4159e2d62bb213beb25a031fbe77a14591_ZG9jL3NldHRpbmdzL2NvbmZpZ3VyYXRpb24ubWQ=..f0ae2e0836fcb019d2551704c5808620bacf4538_ZG9jL3NldHRpbmdzL2NvbmZpZ3VyYXRpb24ubWQ= 100644 --- a/doc/settings/configuration.md +++ b/doc/settings/configuration.md @@ -693,12 +693,8 @@ ## Set initial root password on installation -The initial password for the administrator user `root` can be set at the installation time -with the `GITLAB_ROOT_PASSWORD` environment variable: - -```shell -sudo GITLAB_ROOT_PASSWORD="<strongpassword>" EXTERNAL_URL="http://gitlab.example.com" apt install gitlab-ee -``` +The initial password for the administrator user `root` can be set at installation time. For more information, see +[Set up the initial password](../installation/index.md#set-up-the-initial-password). ## Set allowed hosts to prevent host header attacks