feat:修改目录结构

This commit is contained in:
fanxb 2022-03-01 23:31:20 +08:00
parent 500804fc1a
commit 79ddf3f86c
7 changed files with 19 additions and 10 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
data/maven/mavenRep data/maven/mavenRep
qiezi_front/yarn.lock qiezi_front/yarn.lock
.idea

View File

@ -32,21 +32,28 @@ http {
server_name _; server_name _;
location /qiezi/api/ { location /qiezi/api/ {
proxy_pass http://backend:8088; proxy_pass http://qiezi_backend:8088;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 100m; client_max_body_size 100m;
} }
location /{ location /{
root /opt/dist/indexResource; alias /opt/dist/indexResource/;
}
location /manage {
root /opt/dist;
index index.html; index index.html;
try_files $uri $uri/ /index.html; try_files $uri $uri/ /index.html;
} }
location /manage {
alias /opt/dist/;
index index.html;
try_files $uri $uri/ /index.html;
}
location /qiezijs {
root /opt/dist/;
index index.html;
try_files $uri $uri/ /index.html;
}
} }
} }

View File

@ -1,6 +1,6 @@
version: "2" version: "2"
services: services:
front: qiezi_front:
image: nginx image: nginx
networks: networks:
- qiezi_statistic - qiezi_statistic
@ -12,7 +12,7 @@ services:
ports: ports:
- ${NGINX_PORT}:8080 - ${NGINX_PORT}:8080
backend: qiezi_backend:
image: openjdk:11.0 image: openjdk:11.0
networks: networks:
- qiezi_statistic - qiezi_statistic

View File

@ -17,6 +17,6 @@
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
<script src="./indexResource/qieziStatistic_v1.js" type="text/javascript"></script> <script src="qiezijs/1.0/qiezi_statistic.js" type="text/javascript"></script>
</body> </body>
</html> </html>

View File

@ -0,0 +1 @@
本文件夹用于存放主页静态页面

View File

@ -16,11 +16,11 @@
<div id="qieziStatisticHtmlHostUv" style="display: none;">&nbsp;总访客数:<span id="qieziStatisticHtmlHostUvValue"></span></div> <div id="qieziStatisticHtmlHostUv" style="display: none;">&nbsp;总访客数:<span id="qieziStatisticHtmlHostUvValue"></span></div>
</div> </div>
<script> <script>
//设置统计的hostkey //设置实际部署的host和key
window.qieziStatisticHost="http://localhost:8080"; window.qieziStatisticHost="http://localhost:8080";
window.qieziStatisticKey="d862c12a68ad4d579c6066ac2f064a07"; window.qieziStatisticKey="d862c12a68ad4d579c6066ac2f064a07";
</script> </script>
<script src="./qieziStatistic_v1.js" type="text/javascript"></script> <script src="/qiezijs/1.0/qiezi_statistic.js" type="text/javascript"></script>
<style> <style>
.app{ .app{
width:80%; width:80%;