Move packages/apps back
This commit is contained in:
parent
6eaaf8e9be
commit
5535d6b575
348 changed files with 0 additions and 0 deletions
21
packages/metamigo-common/config/server.ts
Normal file
21
packages/metamigo-common/config/server.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import { ConvictSchema } from "./types";
|
||||
|
||||
export interface IServerConfig {
|
||||
address: string;
|
||||
port: number;
|
||||
}
|
||||
|
||||
export const ServerConfig: ConvictSchema<IServerConfig> = {
|
||||
address: {
|
||||
doc: "The IP address to bind the server to",
|
||||
format: "ipaddress",
|
||||
default: "0.0.0.0",
|
||||
env: "SERVER_ADDRESS",
|
||||
},
|
||||
port: {
|
||||
doc: "The port to bind the server to",
|
||||
format: "port",
|
||||
default: 3001,
|
||||
env: "SERVER_PORT",
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue