Skip to content

Commit

Permalink
feat: 版本升级到3.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
elecV2 committed Dec 14, 2024
1 parent 3b8a0af commit 529bbe4
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 6 deletions.
3 changes: 3 additions & 0 deletions logs/update.log
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<a href='https://github.com/elecV2/elecV2P' target='_blank'>elecV2P</a> 重要更新日志: (最新版本 v3.8.1)

v3.8.2 2024-12-14
• Docker基础node版本固定到22.12.0

v3.8.1 2024-11-10
• 前端打包配置文件修复
• 增加脚本运行环境的兼容性
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elecV2P",
"version": "3.8.1",
"version": "3.8.2",
"description": "customize personal network",
"main": "index.js",
"author": "https://github.com/elecV2",
Expand Down
2 changes: 1 addition & 1 deletion utils/eproxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class eproxy {
},
// throttle: 1000, // 限速: k/s
forceProxyHttps: false,
wsIntercept: false,
wsIntercept: true,
silent: false
}

Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/dist/efss/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="apple-touch-icon" href="/efss/logo/elecV2P.png">
<title>EFSS - elecV2P file storage system</title>
<style type="text/css">.apploading{display:flex;width:100%;height:100vh;justify-content:center;align-items:center;text-align:center;word-break:break-word;font-size:100px;opacity:.1}.navloading{position:fixed;top:0;width:100%;display:flex;justify-content:space-around;font-size:24px;background:var(--secd-fc)}</style>
<script defer="defer" src="/efss/index.d55513c7ed071bdb7183.js"></script>
<script defer="defer" src="/efss/index.6770dbcb1ce2d68e302b.js"></script>
<script defer="defer" src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.6/ace.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script defer="defer" src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.6/ext-modelist.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link href="/efss/index.5686f485d7e60a76d31a.css" rel="stylesheet">
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion web/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="apple-touch-icon" href="/efss/logo/elecV2P.png">
<title>elecV2P - customize personal network</title>
<style type="text/css">.apploading{display:flex;width:100%;height:100vh;justify-content:center;align-items:center;text-align:center;word-break:break-word;font-size:100px;opacity:.1}.navloading{position:fixed;top:0;width:100%;display:flex;justify-content:space-around;font-size:24px;background:var(--secd-fc)}</style>
<script defer="defer" src="index.04e1d48c152d1c961d74.js"></script>
<script defer="defer" src="index.d0768dbb3b550f28cd4a.js"></script>
<link href="index.3b79b99ada39f140b273.css" rel="stylesheet">
</head>
<body><noscript><strong>Please enable JavaScript to continue.</strong></noscript>
Expand Down
9 changes: 9 additions & 0 deletions webmodule.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const http = require('http')
const path = require('path')
const express = require('express')
const compression = require('compression')
const { createProxyMiddleware } = require('http-proxy-middleware')

const { CONFIG, CONFIG_Port } = require('./config')

Expand Down Expand Up @@ -69,6 +70,14 @@ module.exports = () => {
wbrun(app)
wbeapp(app)

app.use(['/eproxy-logs', '/dist', '/latestLog', '/do-not-proxy', '/api/getInitData', '/fetchBody'], createProxyMiddleware({
target: 'http://localhost:' + CONFIG_Port.webif,
changeOrigin: true,
logLevel: CONFIG.gloglevel || 'info',
pathRewrite: {
'^/eproxy-logs': '/',
},
}))
app.use((req, res, next) => {
res.status(404).send(htmlTemplate(`<h3 style="margin-top: 0;padding: 140px 1em 0;white-space: pre-wrap;word-break: break-all;">${req.method} ${req.originalUrl}</h3>
<h1>404, Not Found</h1><br>
Expand Down

0 comments on commit 529bbe4

Please sign in to comment.