Skip to content
This repository was archived by the owner on May 12, 2018. It is now read-only.

Commit 5352f71

Browse files
committed
Use Postgres peer authentication by default
1 parent 7e27f82 commit 5352f71

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

config/database.yml.postgresql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ production:
66
encoding: unicode
77
database: gitlab_ci_production
88
pool: 5
9-
username: postgres
9+
username: gitlab_ci
1010
password:
1111
# host: localhost
1212
# port: 5432

doc/installation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ You can use either MySQL or PostgreSQL.
7676
# Login to PostgreSQL
7777
sudo -u postgres psql -d template1
7878

79-
# Create a user for GitLab. (change $password to a real password)
80-
template1=# CREATE USER gitlab_ci WITH PASSWORD '$password';
79+
# Create a user for GitLab. We do not specify a password because we are using peer authentication.
80+
template1=# CREATE USER gitlab_ci;
8181

8282
# Create the GitLab production database & grant all privileges on database
8383
template1=# CREATE DATABASE gitlab_ci_production OWNER gitlab_ci;
@@ -129,8 +129,8 @@ You can use either MySQL or PostgreSQL.
129129

130130
# postgres
131131
sudo -u gitlab_ci -H cp config/database.yml.postgresql config/database.yml
132-
133-
# Edit user/password
132+
133+
# Edit user/password (not necessary with default Postgres setup)
134134
sudo -u gitlab_ci -H editor config/database.yml
135135

136136
# Setup tables

0 commit comments

Comments
 (0)