diff options
author | Thomas Duval <thomas.duval@orange.com> | 2017-11-03 14:42:18 +0100 |
---|---|---|
committer | Thomas Duval <thomas.duval@orange.com> | 2017-11-03 14:42:18 +0100 |
commit | 0938caa3ba49fa2b54a42f2123643f37de28f1b3 (patch) | |
tree | 34e69af912003d84e450f9cd31bef06e7b4136b2 /moonv4/moon_gui/static/app | |
parent | daaba34fa2ed4426bc0fde359e54a5e1b872208c (diff) |
Use Apache as web server and create configuration for host and port
Change-Id: Ibbf50f069d8013900884c17a86b1105fc1eb7ae7
Diffstat (limited to 'moonv4/moon_gui/static/app')
-rw-r--r-- | moonv4/moon_gui/static/app/moon.constants.js | 24 |
1 files changed, 12 insertions, 12 deletions
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/' }); })(); |