diff options
-rw-r--r-- | config/default.yaml | 2 | ||||
-rw-r--r-- | config/production.yaml.example | 2 | ||||
-rw-r--r-- | server/initializers/config.ts | 2 | ||||
-rw-r--r-- | support/docker/production/config/production.yaml | 2 |
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: | |||
33 | trust_proxy: | 33 | trust_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 |
37 | database: | 37 | database: |
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: | |||
32 | trust_proxy: | 32 | trust_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 |
36 | database: | 36 | database: |
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 |
30 | database: | 30 | database: |
31 | hostname: 'postgres' | 31 | hostname: 'postgres' |
32 | port: 5432 | 32 | port: 5432 |