aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--config/default.yaml2
-rw-r--r--config/production.yaml.example2
-rw-r--r--server/initializers/config.ts2
-rw-r--r--support/docker/production/config/production.yaml2
4 files changed, 4 insertions, 4 deletions
diff --git a/config/default.yaml b/config/default.yaml
index 050019670..a3df1bd45 100644
--- a/config/default.yaml
+++ b/config/default.yaml
@@ -33,7 +33,7 @@ rates_limit:
33trust_proxy: 33trust_proxy:
34 - 'loopback' 34 - 'loopback'
35 35
36# Your database name will be "peertube"+database.suffix 36# Your database name will be database.name OR "peertube"+database.suffix
37database: 37database:
38 hostname: 'localhost' 38 hostname: 'localhost'
39 port: 5432 39 port: 5432
diff --git a/config/production.yaml.example b/config/production.yaml.example
index 6f658e61a..a494bdb03 100644
--- a/config/production.yaml.example
+++ b/config/production.yaml.example
@@ -32,7 +32,7 @@ rates_limit:
32trust_proxy: 32trust_proxy:
33 - 'loopback' 33 - 'loopback'
34 34
35# Your database name will be "peertube"+database.suffix 35# Your database name will be database.name OR "peertube"+database.suffix
36database: 36database:
37 hostname: 'localhost' 37 hostname: 'localhost'
38 port: 5432 38 port: 5432
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index 5b402dd74..48e2cbc1a 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -20,7 +20,7 @@ const CONFIG = {
20 HOSTNAME: config.get<string>('listen.hostname') 20 HOSTNAME: config.get<string>('listen.hostname')
21 }, 21 },
22 DATABASE: { 22 DATABASE: {
23 DBNAME: 'peertube' + config.get<string>('database.suffix'), 23 DBNAME: config.has('database.name') ? config.get<string>('database.name') : 'peertube' + config.get<string>('database.suffix'),
24 HOSTNAME: config.get<string>('database.hostname'), 24 HOSTNAME: config.get<string>('database.hostname'),
25 PORT: config.get<number>('database.port'), 25 PORT: config.get<number>('database.port'),
26 USERNAME: config.get<string>('database.username'), 26 USERNAME: config.get<string>('database.username'),
diff --git a/support/docker/production/config/production.yaml b/support/docker/production/config/production.yaml
index 58b41a493..4eeca4110 100644
--- a/support/docker/production/config/production.yaml
+++ b/support/docker/production/config/production.yaml
@@ -26,7 +26,7 @@ trust_proxy:
26 - 'linklocal' 26 - 'linklocal'
27 - 'uniquelocal' 27 - 'uniquelocal'
28 28
29# Your database name will be "peertube"+database.suffix 29# Your database name will be database.name or "peertube"+database.suffix
30database: 30database:
31 hostname: 'postgres' 31 hostname: 'postgres'
32 port: 5432 32 port: 5432