feat:修改目录结构
This commit is contained in:
parent
500804fc1a
commit
79ddf3f86c
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
data/maven/mavenRep
|
data/maven/mavenRep
|
||||||
qiezi_front/yarn.lock
|
qiezi_front/yarn.lock
|
||||||
|
.idea
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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>
|
||||||
|
1
qiezi_front/public/indexResource/READEME.md
Normal file
1
qiezi_front/public/indexResource/READEME.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
本文件夹用于存放主页静态页面
|
@ -16,11 +16,11 @@
|
|||||||
<div id="qieziStatisticHtmlHostUv" style="display: none;"> 总访客数:<span id="qieziStatisticHtmlHostUvValue"></span>人</div>
|
<div id="qieziStatisticHtmlHostUv" style="display: none;"> 总访客数:<span id="qieziStatisticHtmlHostUvValue"></span>人</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
//设置统计的host,key
|
//设置实际部署的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%;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user