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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
a3731cf3
Commit
a3731cf3
authored
Oct 02, 2013
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use peer-based authentication for PostgreSQL
parent
485162ec
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
config/database.yml.postgresql
config/database.yml.postgresql
+2
-2
doc/install/databases.md
doc/install/databases.md
+1
-1
doc/install/installation.md
doc/install/installation.md
+6
-5
No files found.
config/database.yml.postgresql
View file @
a3731cf3
...
...
@@ -6,8 +6,8 @@ production:
encoding: unicode
database: gitlabhq_production
pool: 10
username: git
password:
#
username: git
#
password:
# host: localhost
# port: 5432
# socket: /tmp/postgresql.sock
...
...
doc/install/databases.md
View file @
a3731cf3
...
...
@@ -58,7 +58,7 @@ GitLab supports the following databases:
sudo -u postgres psql -d template1
# Create a user for GitLab. (change $password to a real password)
template1=# CREATE USER git
WITH PASSWORD '$password'
;
template1=# CREATE USER git;
# Create the GitLab production database & grant all privileges on database
template1=# CREATE DATABASE gitlabhq_production OWNER git;
...
...
doc/install/installation.md
View file @
a3731cf3
...
...
@@ -216,11 +216,6 @@ Make sure to edit both `gitlab.yml` and `unicorn.rb` to match your setup.
# Mysql
sudo -u git cp config/database.yml.mysql config/database.yml
or
# PostgreSQL
sudo -u git cp config/database.yml.postgresql config/database.yml
# Make sure to update username/password in config/database.yml.
# You only need to adapt the production settings (first part).
# If you followed the database guide then please do as follows:
...
...
@@ -228,6 +223,12 @@ Make sure to edit both `gitlab.yml` and `unicorn.rb` to match your setup.
# You can keep the double quotes around the password
sudo -u git -H editor config/database.yml
or
# PostgreSQL
sudo -u git cp config/database.yml.postgresql config/database.yml
# Make config/database.yml readable to git only
sudo -u git -H chmod o-rwx config/database.yml
...
...
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