add geographyConfig

This commit is contained in:
Sylvain Briat
2023-10-31 15:28:47 +01:00
parent a6a69c5051
commit 84e99adeda
7 changed files with 97 additions and 67 deletions

View 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',
}));