mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
@@ -26,7 +26,6 @@ const config: ConfigFile = {
|
|||||||
certificateKey: '/etc/nginx/certs/ssl.key',
|
certificateKey: '/etc/nginx/certs/ssl.key',
|
||||||
dhparam: '/etc/nginx/certs/dhparam.pem',
|
dhparam: '/etc/nginx/certs/dhparam.pem',
|
||||||
},
|
},
|
||||||
visibleRoutes: ['/search', '/search/multi', '/', '/availabilityCreativework', '/feedback'],
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
@@ -71,10 +71,6 @@ export interface ConfigFile {
|
|||||||
* SSL file paths
|
* SSL file paths
|
||||||
*/
|
*/
|
||||||
sslFilePaths: SSLFilePaths;
|
sslFilePaths: SSLFilePaths;
|
||||||
/**
|
|
||||||
* List of visible routes
|
|
||||||
*/
|
|
||||||
visibleRoutes: string[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -139,4 +135,4 @@ export function isFileType(path: string, fileType: string) {
|
|||||||
const regExp = new RegExp(`.*\.${fileType}$`);
|
const regExp = new RegExp(`.*\.${fileType}$`);
|
||||||
|
|
||||||
return existsSync(path) && regExp.test(path);
|
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> {
|
export async function getTemplateView(containers: Dockerode.ContainerInfo[]): Promise<TemplateView> {
|
||||||
const cors = await asyncReadFile('./fixtures/cors.template', 'utf8');
|
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'), {
|
return renderTemplate(join('fixtures', 'visibleRoute.template'), {
|
||||||
cors,
|
cors,
|
||||||
route,
|
route,
|
||||||
|
|||||||
Reference in New Issue
Block a user