diff --git a/MANPAGE.md b/MANPAGE.md index 8cdb7da1..5dca3924 100644 --- a/MANPAGE.md +++ b/MANPAGE.md @@ -3,7 +3,7 @@ pigallery2 uses [typeconfig](https://github.com/bpatrik/typeconfig) for configur `npm start -- --help` prints the following: -```bash +``` Usage: [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) diff --git a/src/common/config/private/PrivateConfig.ts b/src/common/config/private/PrivateConfig.ts index d544aaa5..d7b9e49d 100644 --- a/src/common/config/private/PrivateConfig.ts +++ b/src/common/config/private/PrivateConfig.ts @@ -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 = ''; }