mirror of
https://github.com/certd/certd.git
synced 2025-11-25 09:10:11 +08:00
chore: 官方email服务支持发送附件
This commit is contained in:
@@ -25,10 +25,6 @@ export default ({ command, mode }) => {
|
||||
// if (mode.startsWith("dev")) {
|
||||
// base = "./";
|
||||
// }
|
||||
let proxyTarget: string = "https://127.0.0.1:7002";
|
||||
if (mode === "remote") {
|
||||
proxyTarget = "https://yfy.docmirror.cn:7002";
|
||||
}
|
||||
return {
|
||||
base: base,
|
||||
plugins: [
|
||||
@@ -86,14 +82,14 @@ export default ({ command, mode }) => {
|
||||
},
|
||||
server: {
|
||||
host: "0.0.0.0",
|
||||
port: 13008,
|
||||
port: 3008,
|
||||
fs: devServerFs,
|
||||
allowedHosts: ["localhost", "127.0.0.1", "yfy.docmirror.cn"],
|
||||
proxy: {
|
||||
// with options
|
||||
"/api": {
|
||||
//配套后端 https://github.com/fast-crud/fs-server-js
|
||||
target: proxyTarget,
|
||||
target: "https://127.0.0.1:7002",
|
||||
//忽略证书
|
||||
agent: new https.Agent({ rejectUnauthorized: false }),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user