add config module
This commit is contained in:
@@ -3,6 +3,6 @@ import { toNumber } from 'lodash';
|
||||
import { createAppConfig } from '@/modules/core/config';
|
||||
|
||||
export const app = createAppConfig((configure) => ({
|
||||
port: configure.env.get<number>('APP_PORT', (v) => toNumber(v), 3099),
|
||||
port: configure.env.get<number>('APP_PORT', (v) => toNumber(v), 3000),
|
||||
prefix: 'api',
|
||||
}));
|
||||
|
||||
@@ -7,9 +7,9 @@ export const database = createDBConfig((configure) => ({
|
||||
connections: [
|
||||
{
|
||||
type: 'mysql',
|
||||
host: configure.env.get('DB_HOST', '127.0.0.1'),
|
||||
host: configure.env.get('DB_HOST', '192.168.50.26'),
|
||||
port: configure.env.get<number>('DB_PORT', (v) => toNumber(v), 3306),
|
||||
username: configure.env.get('DB_USERNAME', 'root'),
|
||||
username: configure.env.get('DB_USERNAME', '3r'),
|
||||
password: configure.env.get('DB_PASSWORD', '12345678'),
|
||||
database: configure.env.get('DB_NAME', '3r'),
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createMeiliConfig } from '../modules/meilisearch/config';
|
||||
|
||||
export const MEILI_CONFIG = createMeiliConfig((configure) => [
|
||||
export const meili = createMeiliConfig((configure) => [
|
||||
{
|
||||
name: 'default',
|
||||
host: 'http://192.168.50.26:7700',
|
||||
|
||||
Reference in New Issue
Block a user