Skip to content
Snippets Groups Projects
Commit 9b45bf4d authored by Gonzalo Fabian Cameto Hernandez's avatar Gonzalo Fabian Cameto Hernandez
Browse files

Url dinamica en configuracion para Server con IP dinamica

parent b4e7e2da
No related branches found
No related tags found
No related merge requests found
//export const SERVER = 'http://localhost:8080/matefun';
//export const GHCI_URL = 'ws://localhost:8080/matefun/endpoint';
//export const SERVER = 'http://192.168.43.192:9080';
//export const GHCI_URL = 'ws://192.168.43.192:9080/endpoint';
//export const SERVER = 'https://matefun.mybluemix.net';
//export const GHCI_URL = 'wss://matefun.mybluemix.net/endpoint';
export const SERVER = 'http://localhost:9090';
export const GHCI_URL = 'ws://localhost:9090/endpoint';
//Configuracion dinamica pensando en servidor con ip dinamica
export const SERVER = window.location.protocol + '//' + window.location.host;//'http://localhost:9090';
export const GHCI_URL = window.location.protocol == 'http:'? 'ws://'+window.location.host+'/endpoint': 'wss://'+window.location.host+'/endpoint';
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment