diff --git a/README.md b/README.md index fb5263cd..cb076a4a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # Nginx UI +Yet another Nginx Web UI +Version: 0.1 diff --git a/nginx-ui-frontend/.env.development b/nginx-ui-frontend/.env.development index a879405c..ee020122 100644 --- a/nginx-ui-frontend/.env.development +++ b/nginx-ui-frontend/.env.development @@ -1,2 +1,3 @@ VUE_APP_API_ROOT = / -VUE_APP_API_WSS_ROOT = +VUE_APP_API_WSS_ROOT = +VUE_APP_API_WSS_TOKEN = diff --git a/nginx-ui-frontend/.env.production b/nginx-ui-frontend/.env.production index 42ea6cb4..6f7198fb 100644 --- a/nginx-ui-frontend/.env.production +++ b/nginx-ui-frontend/.env.production @@ -1,2 +1,3 @@ VUE_APP_API_ROOT = /api VUE_APP_API_WSS_ROOT = +VUE_APP_API_WSS_TOKEN = diff --git a/nginx-ui-frontend/src/views/DashBoard.vue b/nginx-ui-frontend/src/views/DashBoard.vue index 464dd928..c02cd663 100644 --- a/nginx-ui-frontend/src/views/DashBoard.vue +++ b/nginx-ui-frontend/src/views/DashBoard.vue @@ -111,7 +111,8 @@ export default { } }, created() { - this.websocket = new WebSocket(process.env["VUE_APP_API_WSS_ROOT"] + "/analytic") + this.websocket = new WebSocket(process.env["VUE_APP_API_WSS_ROOT"] + "/analytic?token=" + + process.env["VUE_APP_API_WSS_TOKEN"]) this.websocket.onmessage = this.wsOnMessage this.websocket.onopen = this.wsOpen this.websocket.onerror = this.wsOnError @@ -167,21 +168,25 @@ export default { diff --git a/nginx-ui-frontend/src/views/DomainEdit.vue b/nginx-ui-frontend/src/views/DomainEdit.vue index 60a801ba..9ec1159a 100644 --- a/nginx-ui-frontend/src/views/DomainEdit.vue +++ b/nginx-ui-frontend/src/views/DomainEdit.vue @@ -6,7 +6,7 @@ - +