mirror of
https://gitlab.com/mobicoop/v3/service/configuration.git
synced 2026-01-11 06:42:39 +00:00
add geographyConfig
This commit is contained in:
12
src/config/geography.config.ts
Normal file
12
src/config/geography.config.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { registerAs } from '@nestjs/config';
|
||||
import { Config } from './config';
|
||||
|
||||
export interface GeographyConfig extends Config {
|
||||
georouterType: string;
|
||||
georouterUrl: string;
|
||||
}
|
||||
|
||||
export default registerAs('geography', () => ({
|
||||
georouterType: process.env.GEOROUTER_TYPE ?? 'graphhopper',
|
||||
georouterUrl: process.env.GEOROUTER_URL ?? 'http://localhost:8989',
|
||||
}));
|
||||
Reference in New Issue
Block a user