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
Admin message
This instance will be upgraded to Heptapod 17.9.0 final on 2025-04-04 between 14:00 and 15:00 UTC+2
Show more breadcrumbs
heptapod
omnibus-heptapod
Commits
2fb1a8fc
Commit
2fb1a8fc
authored
4 years ago
by
Rehab Hassanein
Browse files
Options
Downloads
Patches
Plain Diff
Instructions for non-packaged UNIX sockets
parent
2f3d916b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/settings/database.md
+26
-0
26 additions, 0 deletions
doc/settings/database.md
with
26 additions
and
0 deletions
doc/settings/database.md
+
26
−
0
View file @
2fb1a8fc
...
...
@@ -496,6 +496,32 @@
1.
[
Seed the database
](
#seed-the-database-fresh-installs-only
)
.
### UNIX socket configuration for non-packaged PostgreSQL
If you want to use your system's PostgreSQL server (installed on the same machine as GitLab)
instead of the one bundled with GitLab, you can do so by using a UNIX socket:
1.
Edit
`/etc/gitlab/gitlab.rb`
:
```
ruby
# Disable the built-in Postgres
postgresql
[
'enable'
]
=
false
# Fill in the connection details for database.yml
gitlab_rails
[
'db_adapter'
]
=
'postgresql'
gitlab_rails
[
'db_encoding'
]
=
'utf8'
# The path where the socket lives
gitlab_rails
[
'db_host'
]
=
'/var/run/postgresql/'
```
NOTE:
**Note:**
`gitlab_rails['db_socket']`
is a setting for Mysql and it won't have any effect on PostgreSQL.
1.
Reconfigure GitLab for the changes to take effect:
```
ruby
sudo
gitlab
-
ctl
-
reconfigure
```
### Configuring SSL
#### Require SSL
...
...
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