Changeset 6877 for ComponentRegistry


Ignore:
Timestamp:
12/21/15 10:57:38 (8 years ago)
Author:
Twan Goosen
Message:

Front end config context: REST URL and deployment path dynamically inserted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/branches/ComponentRegistry-2.0/ComponentRegistry/src/main/webapp/compRegConfig.jsp

    r6876 r6877  
     1<%-- Configuration hosted next to the front end index page, from which it is loaded --%>
     2<%@ page import="java.net.URI" %>
    13{
    2   "cors": true,
     4  "cors": false,
    35  "REST": {
    4     "protocol": "http",
    5     "host": "localhost",
    6     "port": "8080",
    7     "path": "/ComponentRegistry",
    8     "auth": {
    9       "username": "user",
    10       "password": "passwd"
    11     }
     6    "url": "<%= application.getInitParameter("eu.clarin.cmdi.componentregistry.serviceRootUrl") %>"
    127  },
    138  "deploy": {
    14     "path": "/ComponentRegistry"
     9    "path": "<%=
     10                URI.create(application.getInitParameter("eu.clarin.cmdi.componentregistry.serviceRootUrl"))
     11                        .getPath() //at same URL as app, so simply take path
     12            %>"
    1513  }
    1614}
Note: See TracChangeset for help on using the changeset viewer.