From 91c0c7d2457009ae0ea60f944149b473a7276e64 Mon Sep 17 00:00:00 2001 From: pnoker Date: Tue, 2 Mar 2021 11:39:20 +0800 Subject: [PATCH] . --- Dockerfile | 3 +- dc3/nginx/conf.d/default.conf | 8 +- .../location => location/default.conf} | 0 package.json | 4 +- src/views/login/Login.vue | 200 +++++++++--------- 5 files changed, 108 insertions(+), 107 deletions(-) rename dc3/nginx/{conf.d/location => location/default.conf} (100%) diff --git a/Dockerfile b/Dockerfile index d9b9fc2..9760e2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,4 +27,5 @@ COPY ./dc3/dependencies/conf.crt/ /etc/nginx/conf.crt/ EXPOSE 80 443 VOLUME /var/log/nginx -CMD /bin/wait-for dc3-auth:8300 dc3-manager:8400 dc3-data:8500 -t 5 -- nginx -g 'daemon off;' +#CMD /bin/wait-for dc3-auth:8300 dc3-manager:8400 dc3-data:8500 -t 5 -- nginx -g 'daemon off;' +CMD nginx -g 'daemon off;' diff --git a/dc3/nginx/conf.d/default.conf b/dc3/nginx/conf.d/default.conf index bfe93e1..2bb3eee 100644 --- a/dc3/nginx/conf.d/default.conf +++ b/dc3/nginx/conf.d/default.conf @@ -1,13 +1,13 @@ server { listen 80; - rewrite ^/$ /dc3/demo permanent; + rewrite ^(.*)$ https://$host$1 permanent; - include /etc/nginx/conf.d/location; + include /etc/nginx/location/*.conf; } server { - listen 443 ssl; + listen 443 ssl http2; add_header X-Xss-Protection 1; add_header X-Frame-Options DENY; @@ -23,6 +23,6 @@ server { rewrite ^/$ /dc3/demo permanent; - include /etc/nginx/conf.d/location; + include /etc/nginx/location/*.conf; } diff --git a/dc3/nginx/conf.d/location b/dc3/nginx/location/default.conf similarity index 100% rename from dc3/nginx/conf.d/location rename to dc3/nginx/location/default.conf diff --git a/package.json b/package.json index f79f4ab..b3a7207 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "dc3-web", - "version": "3.0.0", + "version": "1.2.2", "private": true, "author": "pnoker", - "description": "IOT DC3 UI", + "description": "IOT DC3 Demo Application UI", "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", diff --git a/src/views/login/Login.vue b/src/views/login/Login.vue index ab89fe3..a124f96 100644 --- a/src/views/login/Login.vue +++ b/src/views/login/Login.vue @@ -1,111 +1,111 @@