From 0938caa3ba49fa2b54a42f2123643f37de28f1b3 Mon Sep 17 00:00:00 2001 From: Thomas Duval Date: Fri, 3 Nov 2017 14:42:18 +0100 Subject: Use Apache as web server and create configuration for host and port Change-Id: Ibbf50f069d8013900884c17a86b1105fc1eb7ae7 --- moonv4/moon_gui/static/app/moon.constants.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'moonv4/moon_gui/static/app') diff --git a/moonv4/moon_gui/static/app/moon.constants.js b/moonv4/moon_gui/static/app/moon.constants.js index 872dfd5a..9681e3dc 100644 --- a/moonv4/moon_gui/static/app/moon.constants.js +++ b/moonv4/moon_gui/static/app/moon.constants.js @@ -59,21 +59,21 @@ } }) .constant('REST_URI', { - PDP : 'http://interface:8081/pdp/', - MODELS : 'http://interface:8081/models/', - METARULES: 'http://interface:8081/meta_rules/', - RULES: 'http://interface:8081/rules/', - POLICIES: 'http://interface:8081/policies/', + PDP : 'http://{{MANAGER_HOST}}:{{MANAGER_PORT}}/pdp/', + MODELS : 'http://{{MANAGER_HOST}}:{{MANAGER_PORT}}/models/', + METARULES: 'http://{{MANAGER_HOST}}:{{MANAGER_PORT}}/meta_rules/', + RULES: 'http://{{MANAGER_HOST}}:{{MANAGER_PORT}}/rules/', + POLICIES: 'http://{{MANAGER_HOST}}:{{MANAGER_PORT}}/policies/', METADATA: { - subject : 'http://interface:8081/subject_categories/', - object : 'http://interface:8081/object_categories/', - action : 'http://interface:8081/action_categories/' + subject : 'http://{{MANAGER_HOST}}:{{MANAGER_PORT}}/subject_categories/', + object : 'http://{{MANAGER_HOST}}:{{MANAGER_PORT}}/object_categories/', + action : 'http://{{MANAGER_HOST}}:{{MANAGER_PORT}}/action_categories/' }, PERIMETERS :{ - subject : 'http://interface:8081/subjects/', - object : 'http://interface:8081/objects/', - action : 'http://interface:8081/actions/' + subject : 'http://{{MANAGER_HOST}}:{{MANAGER_PORT}}/subjects/', + object : 'http://{{MANAGER_HOST}}:{{MANAGER_PORT}}/objects/', + action : 'http://{{MANAGER_HOST}}:{{MANAGER_PORT}}/actions/' }, - KEYSTONE : 'http://keystone:5000/v3/' + KEYSTONE : 'http://{{KEYSTONE_HOST}}:{{KEYSTONE_PORT}}/v3/' }); })(); -- cgit 1.2.3-korg