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:
parent
e85434d999
commit
bf784d1b1c
@ -3,7 +3,7 @@ pigallery2 uses [typeconfig](https://github.com/bpatrik/typeconfig) for configur
|
|||||||
|
|
||||||
`npm start -- --help` prints the following:
|
`npm start -- --help` prints the following:
|
||||||
|
|
||||||
```bash
|
```
|
||||||
Usage: <appname> [options]
|
Usage: <appname> [options]
|
||||||
|
|
||||||
Meta cli options:
|
Meta cli options:
|
||||||
@ -123,11 +123,11 @@ Environmental variables:
|
|||||||
Server-Database-mysql-host (default: '')
|
Server-Database-mysql-host (default: '')
|
||||||
MYSQL_HOST same as Server-Database-mysql-host
|
MYSQL_HOST same as Server-Database-mysql-host
|
||||||
Server-Database-mysql-database (default: '')
|
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: '')
|
Server-Database-mysql-username (default: '')
|
||||||
MYSQL_USERNAME same as Server-Database-mysql-username
|
MYSQL_USERNAME same as Server-Database-mysql-username
|
||||||
Server-Database-mysql-password (default: '')
|
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-Sharing-updateTimeout (default: 300000)
|
||||||
Server-sessionTimeout unit: ms (default: 604800000)
|
Server-sessionTimeout unit: ms (default: 604800000)
|
||||||
Server-Indexing-folderPreviewSize (default: 2)
|
Server-Indexing-folderPreviewSize (default: 2)
|
||||||
|
@ -38,11 +38,11 @@ export module ServerConfig {
|
|||||||
export class MySQLConfig {
|
export class MySQLConfig {
|
||||||
@ConfigProperty({envAlias: 'MYSQL_HOST'})
|
@ConfigProperty({envAlias: 'MYSQL_HOST'})
|
||||||
host: string = '';
|
host: string = '';
|
||||||
@ConfigProperty({envAlias: 'MYSQL_PASSWORD'})
|
@ConfigProperty({envAlias: 'MYSQL_DATABASE'})
|
||||||
database: string = '';
|
database: string = '';
|
||||||
@ConfigProperty({envAlias: 'MYSQL_USERNAME'})
|
@ConfigProperty({envAlias: 'MYSQL_USERNAME'})
|
||||||
username: string = '';
|
username: string = '';
|
||||||
@ConfigProperty({envAlias: 'MYSQL_DATABASE'})
|
@ConfigProperty({envAlias: 'MYSQL_PASSWORD'})
|
||||||
password: string = '';
|
password: string = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user