Add new configuration options for database.yml

This commit is contained in:
Steven Achilles 2023-05-24 17:13:38 +02:00
parent be00b11ea2
commit 5fc732eb3c
2 changed files with 53 additions and 1 deletions

View File

@ -29,6 +29,14 @@ production:
# port: 8600
# record: secondary.postgresql.service.consul
# interval: 300
ci:
adapter: postgresql
encoding: unicode
database: gitlabhq_production
database_tasks: false
username: git
password: "secure password"
host: localhost
# geo:
# adapter: postgresql
# encoding: unicode
@ -50,6 +58,16 @@ development:
host: localhost
variables:
statement_timeout: 15s
ci:
adapter: postgresql
encoding: unicode
database: gitlabhq_development
database_tasks: false
username: postgres
password: "secure password"
host: localhost
variables:
statement_timeout: 15s
# geo:
# adapter: postgresql
# encoding: unicode
@ -69,6 +87,14 @@ staging:
username: git
password: "secure password"
host: localhost
ci:
adapter: postgresql
encoding: unicode
database: gitlabhq_staging
database_tasks: false
username: git
password: "secure password"
host: localhost
# geo:
# adapter: postgresql
# encoding: unicode
@ -91,6 +117,17 @@ test: &test
prepared_statements: false
variables:
statement_timeout: 15s
ci:
adapter: postgresql
encoding: unicode
database: gitlabhq_test
database_tasks: false
username: postgres
password:
host: localhost
prepared_statements: false
variables:
statement_timeout: 15s
# geo:
# adapter: postgresql
# encoding: unicode
@ -98,3 +135,10 @@ test: &test
# username: postgres
# password:
# host: localhost
# embedding:
# adapter: postgresql
# encoding: unicode
# database: gitlabhq_embedding_test
# username: postgres
# password:
# host: localhost

View File

@ -12,4 +12,12 @@ production:
password: "{{DB_PASS}}"
pool: {{DB_POOL}}
prepared_statements: {{DB_PREPARED_STATEMENTS}}
ci:
adapter: postgresql
encoding: {{DB_ENCODING}}
database: {{DB_NAME}}
database_tasks: false
host: {{DB_HOST}}
port: {{DB_PORT}}
username: {{DB_USER}}
password: "{{DB_PASS}}"