Cleanup MySQL unix socket code and add to sample config

This commit is contained in:
wiz
2022-03-14 13:11:04 +00:00
parent 320ce82885
commit d8ac35027e
3 changed files with 8 additions and 6 deletions

View File

@@ -43,7 +43,7 @@ interface IConfig {
DATABASE: {
ENABLED: boolean;
HOST: string,
SOCKET: string | undefined,
SOCKET: string,
PORT: number;
DATABASE: string;
USERNAME: string;
@@ -122,7 +122,7 @@ const defaults: IConfig = {
'DATABASE': {
'ENABLED': true,
'HOST': '127.0.0.1',
'SOCKET': undefined,
'SOCKET': '',
'PORT': 3306,
'DATABASE': 'mempool',
'USERNAME': 'mempool',