Browse Source

前端上下文修改

skcj 2 years ago
parent
commit
0da194485f

+ 1 - 0
ruoyi-ui/Dockerfile

@@ -23,5 +23,6 @@ FROM nginx:alpine
 #RUN echo 'Asia/Shanghai' >/etc/timezone
 
 COPY --from=builder code/dist/  /usr/share/nginx/html/
+COPY ./index.html  /usr/share/nginx/html/index.html
 COPY ./nginx.conf  /etc/nginx/nginx.conf
 EXPOSE 80

+ 1 - 0
ruoyi-ui/Dockerfile_Prod

@@ -20,5 +20,6 @@ FROM nginx:alpine
 #RUN echo 'Asia/Shanghai' >/etc/timezone
 
 COPY --from=builder code/dist/  /usr/share/nginx/html/
+COPY ./index.html  /usr/share/nginx/html/index.html
 COPY ./docker/prod/nginx.conf   /etc/nginx/nginx.conf
 EXPOSE 80

+ 28 - 0
ruoyi-ui/index.html

@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Welcome to nginx!</title>
+<script>
+  window.onload = function(){
+    location.href = 'jmgc'
+  }
+</script>
+<style>
+html { color-scheme: light dark; }
+body { width: 35em; margin: 0 auto;
+font-family: Tahoma, Verdana, Arial, sans-serif; }
+</style>
+</head>
+<body>
+<!-- <h1>Welcome to nginx!</h1>
+<p>If you see this page, the nginx web server is successfully installed and
+working. Further configuration is required.</p>
+
+<p>For online documentation and support please refer to
+<a href="http://nginx.org/">nginx.org</a>.<br/>
+Commercial support is available at
+<a href="http://nginx.com/">nginx.com</a>.</p>
+
+<p><em>Thank you for using nginx.</em></p> -->
+</body>
+</html>

+ 1 - 0
ruoyi-web/Dockerfile

@@ -23,5 +23,6 @@ FROM nginx:alpine
 #RUN echo 'Asia/Shanghai' >/etc/timezone
 
 COPY --from=builder code/dist/  /usr/share/nginx/html/
+COPY ./mainindex.html  /usr/share/nginx/html/index.html
 COPY ./nginx.conf  /etc/nginx/nginx.conf
 EXPOSE 80

+ 1 - 0
ruoyi-web/Dockerfile_Prod

@@ -20,5 +20,6 @@ FROM nginx:alpine
 #RUN echo 'Asia/Shanghai' >/etc/timezone
 
 COPY --from=builder code/dist/  /usr/share/nginx/html/
+COPY ./mainindex.html  /usr/share/nginx/html/index.html
 COPY ./docker/prod/nginx.conf  /etc/nginx/nginx.conf
 EXPOSE 80

+ 28 - 0
ruoyi-web/mainindex.html

@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Welcome to nginx!</title>
+<script>
+  window.onload = function(){
+    location.href = 'portal'
+  }
+</script>
+<style>
+html { color-scheme: light dark; }
+body { width: 35em; margin: 0 auto;
+font-family: Tahoma, Verdana, Arial, sans-serif; }
+</style>
+</head>
+<body>
+<!-- <h1>Welcome to nginx!</h1>
+<p>If you see this page, the nginx web server is successfully installed and
+working. Further configuration is required.</p>
+
+<p>For online documentation and support please refer to
+<a href="http://nginx.org/">nginx.org</a>.<br/>
+Commercial support is available at
+<a href="http://nginx.com/">nginx.com</a>.</p>
+
+<p><em>Thank you for using nginx.</em></p> -->
+</body>
+</html>