Move websocket behind nginx, add nginx.conf, update README

This commit is contained in:
wiz
2019-08-22 05:25:29 +09:00
parent 83ddaee4d1
commit d73ed0e706
3 changed files with 80 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ import { Observable } from 'rxjs';
import { MemPoolService } from './mem-pool.service';
import { tap, retryWhen, delay } from 'rxjs/operators';
const WEB_SOCKET_URL = 'ws://' + document.location.hostname + ':8999';
const WEB_SOCKET_URL = 'ws://' + document.location.hostname + '/ws';
const API_BASE_URL = '/api/v1';
@Injectable({