Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matefun
Frontend
Commits
6cb22866
Commit
6cb22866
authored
Jan 16, 2018
by
Diego Rey
Browse files
Add links a servidor en Amazon
parent
0ee7d707
Changes
1
Show whitespace changes
Inline
Side-by-side
Frontend Angular 4/src/app/shared/config.ts
View file @
6cb22866
...
...
@@ -4,6 +4,9 @@
//export const SERVER = 'http://localhost:9090';
//export const GHCI_URL = 'ws://localhost:9090/endpoint';
export
const
SERVER
=
'
http://ec2-52-15-74-22.us-east-2.compute.amazonaws.com:9090
'
;
export
const
GHCI_URL
=
'
ws://ec2-52-15-74-22.us-east-2.compute.amazonaws.com: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
'
;
//
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';
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment