source: ComponentRegistry/branches/ComponentRegistry-2.0/ComponentRegistry/src/main/webapp/compRegConfig.jsp @ 6885

Last change on this file since 6885 was 6885, checked in by Twan Goosen, 9 years ago

inclusion of front end and back end versions in config file through build time filtering

File size: 829 bytes
Line 
1<%-- Configuration hosted next to the front end index page, from which it is loaded --%>
2<%@ page import="java.net.URI" %>
3<%
4    final String loglevelParam = request.getParameter("loglevel");
5    final String loglevel;
6    if(loglevelParam != null) {
7        loglevel = loglevelParam;
8    } else {
9        loglevel = "info" ;
10    }
11%>
12{
13  "loglevel": "<%= loglevel %>",
14  "cors": false,
15  "REST": {
16    "url": "<%= application.getInitParameter("eu.clarin.cmdi.componentregistry.serviceRootUrl") %>"
17  },
18  "backEndVersion": "${project.version}",
19  "frontEndVersion": "${frontEndVersion}",
20  "deploy": {
21    "path": "<%= 
22                URI.create(application.getInitParameter("eu.clarin.cmdi.componentregistry.serviceRootUrl"))
23                        .getPath() //at same URL as app, so simply take path
24            %>"
25  }
26}
Note: See TracBrowser for help on using the repository browser.