feat:修改目录结构
This commit is contained in:
parent
500804fc1a
commit
79ddf3f86c
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
data/maven/mavenRep
|
||||
qiezi_front/yarn.lock
|
||||
.idea
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
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>
|
||||
<script>
|
||||
//设置统计的host,key
|
||||
//设置实际部署的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%;
|
||||
|
Loading…
x
Reference in New Issue
Block a user