diff --git a/config/default.ts b/config/default.ts index 8c9b6d72..d30e26b9 100644 --- a/config/default.ts +++ b/config/default.ts @@ -26,7 +26,6 @@ const config: ConfigFile = { certificateKey: '/etc/nginx/certs/ssl.key', dhparam: '/etc/nginx/certs/dhparam.pem', }, - visibleRoutes: ['/search', '/search/multi', '/', '/availabilityCreativework', '/feedback'], }; export default config; diff --git a/src/common.ts b/src/common.ts index 3852d03e..d4eb18c5 100644 --- a/src/common.ts +++ b/src/common.ts @@ -71,10 +71,6 @@ export interface ConfigFile { * SSL file paths */ sslFilePaths: SSLFilePaths; - /** - * List of visible routes - */ - visibleRoutes: string[]; } /** @@ -139,4 +135,4 @@ export function isFileType(path: string, fileType: string) { const regExp = new RegExp(`.*\.${fileType}$`); return existsSync(path) && regExp.test(path); -} \ No newline at end of file +} diff --git a/src/main.ts b/src/main.ts index 1ff8a30e..0dc6ce5c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -184,7 +184,7 @@ async function renderTemplate(path: string, view: unknown): Promise { export async function getTemplateView(containers: Dockerode.ContainerInfo[]): Promise { const cors = await asyncReadFile('./fixtures/cors.template', 'utf8'); - const visibleRoutesPromises = configFile.visibleRoutes.map(async (route) => { + const visibleRoutesPromises = ['/'].map(async (route) => { return renderTemplate(join('fixtures', 'visibleRoute.template'), { cors, route,