Add MySQL socket support

This commit is contained in:
Djuri Baars
2022-03-13 14:57:17 +01:00
parent 1052b19fae
commit 7fd9e27cc2
4 changed files with 27 additions and 9 deletions

View File

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