Commit 0277d94f authored by Alex Pyrgiotis's avatar Alex Pyrgiotis

deploy: Add `ADMIN_BASE_URL` in Admin conf

Add an `ADMIN_BASE_URL` setting in the admin.conf file. The value of
this setting is created in the same fashion as the values for
CYCLADES_BASE_URL / ASTAKOS_BASE_URL.
parent da14a8b5
## Uncomment the following line when admin is installed in a separate node.
## This setting cuts all other urls and uses only the urls of admin.
#ROOT_URLCONF="synnefo_admin.admin.urls"
ADMIN_BASE_URL = 'https://%ADMIN%/admin'
......@@ -1569,8 +1569,11 @@ class Admin(base.Component):
return []
def _configure(self):
r1 = {
"ADMIN": self.ctx.admin.cname,
}
return [
("/etc/synnefo/admin.conf", {}, {})
("/etc/synnefo/admin.conf", r1, {})
]
@base.run_cmds
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment