If database.name is set, we use it as the complete database name.
If unset, we use the "peertube"+database.suffix as the complete database
name.
Fixes #1620
trust_proxy:
- 'loopback'
-# Your database name will be "peertube"+database.suffix
+# Your database name will be database.name OR "peertube"+database.suffix
database:
hostname: 'localhost'
port: 5432
trust_proxy:
- 'loopback'
-# Your database name will be "peertube"+database.suffix
+# Your database name will be database.name OR "peertube"+database.suffix
database:
hostname: 'localhost'
port: 5432
HOSTNAME: config.get<string>('listen.hostname')
},
DATABASE: {
- DBNAME: 'peertube' + config.get<string>('database.suffix'),
+ DBNAME: config.has('database.name') ? config.get<string>('database.name') : 'peertube' + config.get<string>('database.suffix'),
HOSTNAME: config.get<string>('database.hostname'),
PORT: config.get<number>('database.port'),
USERNAME: config.get<string>('database.username'),
- 'linklocal'
- 'uniquelocal'
-# Your database name will be "peertube"+database.suffix
+# Your database name will be database.name or "peertube"+database.suffix
database:
hostname: 'postgres'
port: 5432