mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-09 19:22:51 +00:00
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -184,7 +184,7 @@ async function renderTemplate(path: string, view: unknown): Promise<string> {
|
||||
export async function getTemplateView(containers: Dockerode.ContainerInfo[]): Promise<TemplateView> {
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user