mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
replace hardcoded ip with dynamic local ip
This commit is contained in:
@@ -41,8 +41,8 @@ export class AppComponent {
|
|||||||
translate: AlfrescoTranslationService;
|
translate: AlfrescoTranslationService;
|
||||||
searchTerm: string = '';
|
searchTerm: string = '';
|
||||||
|
|
||||||
ecmHost: string = 'http://127.0.0.1:8080';
|
ecmHost: string = 'http://' + window.location.hostname + ':8080';
|
||||||
bpmHost: string = 'http://127.0.0.1:9999';
|
bpmHost: string = 'http://' + window.location.hostname + ':9999';
|
||||||
|
|
||||||
constructor(public auth: AlfrescoAuthenticationService,
|
constructor(public auth: AlfrescoAuthenticationService,
|
||||||
public router: Router,
|
public router: Router,
|
||||||
|
@@ -20,8 +20,8 @@ import { Injectable } from '@angular/core';
|
|||||||
@Injectable()
|
@Injectable()
|
||||||
export class AlfrescoSettingsService {
|
export class AlfrescoSettingsService {
|
||||||
|
|
||||||
static DEFAULT_ECM_ADDRESS: string = 'http://127.0.0.1:8080';
|
static DEFAULT_ECM_ADDRESS: string = 'http://' + window.location.hostname + ':8080';
|
||||||
static DEFAULT_BPM_ADDRESS: string = 'http://127.0.0.1:9999';
|
static DEFAULT_BPM_ADDRESS: string = 'http://' + window.location.hostname + ':9999';
|
||||||
|
|
||||||
static DEFAULT_ECM_CONTEXT_PATH: string = '/alfresco';
|
static DEFAULT_ECM_CONTEXT_PATH: string = '/alfresco';
|
||||||
static DEFAULT_BPM_CONTEXT_PATH: string = '/activiti-app';
|
static DEFAULT_BPM_CONTEXT_PATH: string = '/activiti-app';
|
||||||
|
Reference in New Issue
Block a user