feat(server): add bind address
This commit is contained in:
parent
828eeb0c77
commit
9816eb1d36
3 changed files with 9 additions and 4 deletions
|
|
@ -7,6 +7,7 @@ const configFileName = 'config.toml';
|
|||
interface Config {
|
||||
GENERAL: {
|
||||
PORT: number;
|
||||
BIND_ADDRESS: string;
|
||||
SIMILARITY_MEASURE: string;
|
||||
};
|
||||
API_KEYS: {
|
||||
|
|
@ -30,6 +31,8 @@ const loadConfig = () =>
|
|||
|
||||
export const getPort = () => loadConfig().GENERAL.PORT;
|
||||
|
||||
export const getBindAddress = () => loadConfig().GENERAL.BIND_ADDRESS;
|
||||
|
||||
export const getSimilarityMeasure = () =>
|
||||
loadConfig().GENERAL.SIMILARITY_MEASURE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue