Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
omnibus-heptapod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
heptapod
omnibus-heptapod
Commits
25e3ad93cc5b
Commit
25e3ad93cc5b
authored
9 months ago
by
Ben Bodenmiller
Browse files
Options
Downloads
Patches
Plain Diff
Improve external database setup directions
parent
34e42e93f1f0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!143
Merge upstream Omnibus GitLab up to the 17.1 branching point
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/settings/database.md
+8
-2
8 additions, 2 deletions
doc/settings/database.md
with
8 additions
and
2 deletions
doc/settings/database.md
+
8
−
2
View file @
25e3ad93
...
...
@@ -306,8 +306,7 @@
-
`sql_user`
: Controls the expected username for MD5 authentication. This
defaults to
`gitlab`
, and isn't a required setting.
-
`sql_user_password`
: Sets the password that PostgreSQL will accept for MD5
authentication. Replace
`securesqlpassword`
in the following example with an
acceptable password.
authentication.
1.
Edit
`/etc/gitlab/gitlab.rb`
:
...
...
@@ -320,6 +319,7 @@
##! SQL_USER_PASSWORD_HASH can be generated using the command `gitlab-ctl pg-password-md5 'gitlab'`,
##! where 'gitlab' (single-quoted to avoid shell interpolation) is the name of the SQL user that connects to GitLab.
##! You will be prompted for a password which other clients will use to authenticate with database, such as `securesqlpassword` in the below section.
postgresql
[
'sql_user_password'
]
=
"SQL_USER_PASSWORD_HASH"
# force ssl on all connections defined in trust_auth_cidr_addresses and md5_auth_cidr_addresses
...
...
@@ -381,6 +381,12 @@
connections to PostgreSQL to be handled over the UNIX socket, and may not function
properly. You can enable TCP/IP without disabling UNIX sockets.
To test access from other clients, you can run:
```
shell
sudo
gitlab-rails dbconsole
--database
main
```
### Enabling PostgreSQL WAL (Write Ahead Log) Archiving
By default, WAL archiving of the packaged PostgreSQL isn't enabled. Consider the
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment