[ADF-2961] support for protocol substition in app config files (#3324)

* support for protocol substition in app config files

* Update app-config.service.spec.ts

* Update app-config.service.spec.ts
This commit is contained in:
Denys Vuika
2018-05-15 13:10:27 +01:00
committed by GitHub
parent f159fbaa2c
commit db7d0b7c08
3 changed files with 23 additions and 2 deletions

View File

@@ -109,8 +109,8 @@ The `AppConfigService` also supports a limited set of variable substitutions to
```json
{
"ecmHost": "http://{hostname}:{port}/ecm",
"bpmHost": "http://{hostname}:{port}/bpm",
"ecmHost": "{protocol}//{hostname}:{port}/ecm",
"bpmHost": "{protocol}//{hostname}:{port}/bpm",
"application": {
"name": "Alfresco"
}
@@ -121,6 +121,7 @@ The supported variables are:
| Variable name | Runtime value |
| ------------- | ------------- |
| protocol | `location.protocol` |
| hostname | `location.hostname` |
| port | `location.port` |