Correct API url in refstack.conf template

Since the api is hosted on /api, that needs to be included
in the URL.

Change-Id: I023fa8f80a90c45616c243df375b9fe27682c3b5
This commit is contained in:
Paul Van Eck 2015-09-22 17:24:47 -07:00
parent c606f64c73
commit 4f06b81398
2 changed files with 3 additions and 1 deletions

View File

@ -57,6 +57,8 @@ class refstack::params (
# Construct website URL.
$web_url = "${protocol}://${hostname}"
$api_url = "${web_url}/api"
# CA file needs special treatment, since we want the path variable
# to be undef in some cases.
if $ssl_ca == undef and $ssl_ca_content != undef {

View File

@ -4,7 +4,7 @@ ui_url=<%= scope.lookupvar("::refstack::params::web_url") %>
[api]
api_url =<%= scope.lookupvar("::refstack::params::web_url") %>
api_url =<%= scope.lookupvar("::refstack::params::api_url") %>
[database]