Use proper 'url_for' rather than config value
Add endpoint to refer to namespaces url
Add role for nginx