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
qiezi_front/yarn.lock
.idea

View File

@ -32,21 +32,28 @@ http {
server_name _;
location /qiezi/api/ {
proxy_pass http://backend:8088;
proxy_pass http://qiezi_backend:8088;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
client_max_body_size 100m;
}
location /{
root /opt/dist/indexResource;
}
alias /opt/dist/indexResource/;
index index.html;
try_files $uri $uri/ /index.html;
}
location /manage {
root /opt/dist;
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"
services:
front:
qiezi_front:
image: nginx
networks:
- qiezi_statistic
@ -12,7 +12,7 @@ services:
ports:
- ${NGINX_PORT}:8080
backend:
qiezi_backend:
image: openjdk:11.0
networks:
- qiezi_statistic

View File

@ -17,6 +17,6 @@
<div id="app"></div>
<!-- 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>
</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>
<script>
//设置统计的hostkey
//设置实际部署的host和key
window.qieziStatisticHost="http://localhost:8080";
window.qieziStatisticKey="d862c12a68ad4d579c6066ac2f064a07";
</script>
<script src="./qieziStatistic_v1.js" type="text/javascript"></script>
<script src="/qiezijs/1.0/qiezi_statistic.js" type="text/javascript"></script>
<style>
.app{
width:80%;