deploy:部署
This commit is contained in:
parent
50b5dbfe95
commit
a268e304e8
@ -30,23 +30,23 @@ http {
|
||||
index index.html;
|
||||
root /opt/dist/;
|
||||
server_name _;
|
||||
location /bookmark/api/ {
|
||||
|
||||
location /qiezi/api/ {
|
||||
proxy_pass http://backend:8088;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
client_max_body_size 100m;
|
||||
}
|
||||
|
||||
location /files/public/{
|
||||
root /opt;
|
||||
}
|
||||
|
||||
location / {
|
||||
root /opt/dist;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
location /{
|
||||
root /opt/dist/indexResource;
|
||||
}
|
||||
|
||||
location /manage {
|
||||
root /opt/dist;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -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="/indexResource/qieziStatistic_v1.min.js" type="text/javascript"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
2
qiezi_front/public/indexResource/qieziStatistic_v1.min.js
vendored
Normal file
2
qiezi_front/public/indexResource/qieziStatistic_v1.min.js
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
eval(function(e,f,a,d,c,g){c=function(b){return(b<f?"":c(parseInt(b/f)))+(35<(b%=f)?String.fromCharCode(b+29):b.toString(36))};if(!"".replace(/^/,String)){for(;a--;)g[c(a)]=d[a]||c(a);d=[function(b){return g[b]}];c=function(){return"\\w+"};a=1}for(;a--;)d[a]&&(e=e.replace(new RegExp("\\b"+c(a)+"\\b","g"),d[a]));return e}('(6(){3 d="m";3 e=d+"n";4[e]=6(a){3 b=2.5(d+"o");8(b!=9){2.5(d+"p").7=a.q;2.5(d+"r").7=a.s;b.f.g="h"}3 c=2.5(d+"t");8(c!=9){2.5(d+"u").7=a.v;c.f.g="h"}};w(6(){3 a=2.x("y");a.z="A/B";a.C=D;a.E=(4.i==j?"F://k.G.H":4.i)+"/k/I/J/K?L="+e+"&M="+4.l;2.N("O")[0].P(a)},4.l==j?Q:1,)})();',
|
||||
53,53," document var window getElementById function innerText if null style display inline qieziStatisticHost undefined qiezi qieziStatisticKey qieziStatistic9527 CallBack Host HostPv totalPv HostUv totalUv Post PostPv pagePv setTimeout createElement script type text javascript defer true src https fleyx com api application visit callBack key getElementsByTagName head appendChild 1000".split(" "),0,{}));
|
@ -1,7 +1,29 @@
|
||||
<template>
|
||||
<router-view />
|
||||
|
||||
<div id="qieziStatistic9527Host" style="display: none">
|
||||
<div style="display: inline-block; width: 50%; text-align: right">页面访问次数:<span id="qieziStatistic9527HostPv"></span>次 </div>
|
||||
<div style="display: inline-block; width: 50%; text-align: left"> 总访客数:<span id="qieziStatistic9527HostUv"></span>人</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onMounted } from "@vue/runtime-core";
|
||||
|
||||
onMounted(async () => {
|
||||
let host = process.env.VUE_APP_QIEZI_HOST;
|
||||
console.log("qieziHost:" + host);
|
||||
if (host && host.trim().length > 0) {
|
||||
window.qieziStatisticHost = host;
|
||||
}
|
||||
let key = process.env.VUE_APP_QIEZI_KEY;
|
||||
console.log("qieziKey:" + key);
|
||||
if (key && key.trim().length > 0) {
|
||||
window.qieziStatisticKey = key;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
html {
|
||||
font-family: Avenir, Helvetica, Arial, sans-serif;
|
||||
|
@ -32,8 +32,6 @@ import { get, post } from "../util/HttpUtil";
|
||||
let imgData = ref("");
|
||||
let getCaptcha = async () => "data:image/png;base64," + (await get("/captcha/sign"));
|
||||
onMounted(async () => {
|
||||
window.qieziStatisticHost = "http://localhost:8080";
|
||||
window.qieziStatisticKey = "238f2c45fa53454b95644280a12bc735";
|
||||
imgData.value = await getCaptcha();
|
||||
});
|
||||
let onCaptchaClick = async () => (imgData.value = await getCaptcha());
|
||||
|
@ -1,3 +1,6 @@
|
||||
//本地开发时使用,打包部署时请使用环境变量配置
|
||||
//process.env.VUE_APP_QIEZI_HOST = "http://localhost:8080";
|
||||
//process.env.VUE_APP_QIEZI_KEY = "aab3cad381f54ca5b7b9abeb2e09320a";
|
||||
module.exports = {
|
||||
devServer: {
|
||||
proxy: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user