1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

fixing config env alias

This commit is contained in:
Patrik J. Braun 2020-01-28 22:54:02 +01:00
parent e85434d999
commit bf784d1b1c
2 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ pigallery2 uses [typeconfig](https://github.com/bpatrik/typeconfig) for configur
`npm start -- --help` prints the following:
```bash
```
Usage: <appname> [options]
Meta cli options:
@ -123,11 +123,11 @@ Environmental variables:
Server-Database-mysql-host (default: '')
MYSQL_HOST same as Server-Database-mysql-host
Server-Database-mysql-database (default: '')
MYSQL_PASSWORD same as Server-Database-mysql-database
MYSQL_DATABASE same as Server-Database-mysql-database
Server-Database-mysql-username (default: '')
MYSQL_USERNAME same as Server-Database-mysql-username
Server-Database-mysql-password (default: '')
MYSQL_DATABASE same as Server-Database-mysql-password
MYSQL_PASSWORD same as Server-Database-mysql-password
Server-Sharing-updateTimeout (default: 300000)
Server-sessionTimeout unit: ms (default: 604800000)
Server-Indexing-folderPreviewSize (default: 2)

View File

@ -38,11 +38,11 @@ export module ServerConfig {
export class MySQLConfig {
@ConfigProperty({envAlias: 'MYSQL_HOST'})
host: string = '';
@ConfigProperty({envAlias: 'MYSQL_PASSWORD'})
@ConfigProperty({envAlias: 'MYSQL_DATABASE'})
database: string = '';
@ConfigProperty({envAlias: 'MYSQL_USERNAME'})
username: string = '';
@ConfigProperty({envAlias: 'MYSQL_DATABASE'})
@ConfigProperty({envAlias: 'MYSQL_PASSWORD'})
password: string = '';
}