diff --git a/mail2list/README.md b/mail2list/README.md new file mode 100644 index 0000000000000000000000000000000000000000..db89a5c9e7287f72a96f3a4b4471e404720b863a --- /dev/null +++ b/mail2list/README.md @@ -0,0 +1,147 @@ +# 邮箱管理页面使用 + +## 运行数据库 + +安装好openGauss数据库,运行db/mail_list.sql,得到对应的数据结构 + +## 创建数据 + +进入mail2list_backend,运行mail2list_clap,其中add代表增加数据,delete代表删除数据。select代表查看所有值。示例如下: + +```shell +mail2list_clap.exe add --url --id --name --email --archive --description +``` + +```shell +mail2list_clap.exe delete --url --id +``` + +```shell +mail2list_clap.exe select --url +``` + +其中,url是数据库地址,剩下为表中字段,添加自己需要添加的值。 + +## 配置环境变量 + +数据库用户名 + +export OPENGUASS_USER=xxxxx + +数据库密码 + +export OPENGUASS_PWD=xxxxx + +数据库地址 + +export OPENGUASS_URL=xxxx + +数据库端口 + +export OPENGUASS_PORT=xxxxxx + +数据库名称 + +export OPENGUASS_DATABASE=xxxx + +订阅邮箱邮箱地址(可能包含多个订阅地址,使用数组加入) + +export mine_email=[XXXXXX,XXXXXX] + +订阅邮箱smtp服务(可能包含多个订阅地址,使用数组加入) + +export smtp_server=[xxxxx,xxxxx] + +订阅邮箱授权码 + +export password=[xxxxx,xxxx] + +订阅邮箱imap地址 + +export imap_server=[xxxx,xxxx] + +归档邮箱箱邮箱地址 + +export archive_mine_email=[XXXXXX,XXXXXX] + +归档邮箱smtp服务(可能包含多个订阅地址,使用数组加入) + +export archive_smtp_server=[xxxxx,xxxxx] + +归档邮箱授权码 + +export archive_password=[xxxxx,xxxx] + +归档邮箱名字(对应的是每个归档邮箱所对应列表姓名) + +export archive_name=[xxxxx,xxxx] + +归档邮箱imap地址 + +export archive_imap_server=[xxxx,xxxx] + +归档邮箱箱邮箱地址 + +export leave_email=[XXXXXX,XXXXXX] + +归档邮箱smtp服务(可能包含多个订阅地址,使用数组加入) + +export leave_smtp_server=[xxxxx,xxxxx] + +归档邮箱授权码 + +export leave_email_password=[xxxxx,xxxx] + +归档邮箱名字(对应的是每个归档邮箱所对应列表姓名) + +export leave_name=[xxxxx,xxxx] + +归档邮箱imap地址 + +export leave_imap_server=[xxxx,xxxx] + +**注意:每个数组元素中是一一对应得关系,如mine_email[0]与password[0]对应的是同一个邮箱内容,以此类推** + +## 运行后端 + +1. 进入后端中的包mail2list_web中。 +2. 运行mail2list_web,需要将application.yml其中database_url修改成自己的连接。以及对应的邮箱地址进行修改,然后运行cargo run --bin mail2list_web 启动后端。 +3. 同时需要运行mail2list_archive_unsubscribe,然后运行cargo run --bin mail2list_archive_unsubscribe启动邮箱订阅归档以及退订功能。 + + + +## 运行前端 + +1. 进入前端对应的vue-mail2list-web中。 +2. 使用npm install下载对应的包,在使用npm run dev运行程序。 + +## 镜像运行 + +### 运行前端 + +1. 进入前端对应的vue-mail2list-web中。 + +2. 运行Dockerfile,构建镜像 + +3. 运行镜像,使用 + + ```dockerfile + docker run -p :9999 -e mine_email= -e smtp_server= -e password= -e imap_server= -e archive_mine_email= -e archive_smtp_server= -e archive_password= -e archive_name= -e archive_imap_server= -e leave_email= -e leave_email_password= -e leave_email_password= -e leave_smtp_server= -e leave_imap_server= -e OPENGUASS_USER= -e OPENGUASS_PWD= -e OPENGUASS_URL= -e OPENGUASS_PORT= -e OPENGUASS_DATABASE= + ``` + + 填入对应的参数,即可运行 + +### 运行后端 + +1. 进入后端中的包mail2list_web中 + +2. 运行Dockerfile,构建镜像 + +3. 运行镜像,使用 + + ```dockerfile + docker run -p :8081 + ``` + + + diff --git a/mail2list/db/mail_list.sql b/mail2list/db/mail_list.sql index 0bdefb6f2b1c19d6b6429df4657ee47092164955..af1053befdb1148b0738c798084fc5f26b9b27eb 100644 --- a/mail2list/db/mail_list.sql +++ b/mail2list/db/mail_list.sql @@ -8,13 +8,22 @@ BEGIN; CREATE SEQUENCE sq_mail_id START 1; CREATE TABLE mail_list ( - id INT PRIMARY KEY, + id integer NOT NULL DEFAULT nextval('sq_mail_id'), name varchar(20) NOT NULL, - email varchar(20), - archive varchar(20), - description varchar(100) + email character varying, + archive character varying, + description character varying ); +CREATE TABLE subscribe_mail_list +( + id integer NOT NULL DEFAULT nextval('sq_mail_id'), + user_email character varying, + username character varying, + name character varying, + email character varying +) + CREATE TABLE "archive_mail_list" ( id integer NOT NULL DEFAULT nextval('sq_mail_id'), name character varying, diff --git a/mail2list/dockerfile b/mail2list/dockerfile deleted file mode 100644 index 92e90b0af4cbd85037a8681f3e72d884a90c59ed..0000000000000000000000000000000000000000 --- a/mail2list/dockerfile +++ /dev/null @@ -1,15 +0,0 @@ -# 下载环境对应的包 -# 配置对应的源 -FROM rust:1.31 -FROM enmotech/opengauss:2.1.0 -FROM node:14.19.1 -RUN npm i --registry=https://registry.npm.taobao.org - -RUN mkdir -p /app/mail2list/backend -COPY mail2list_backend/mail2list_web app/mail2list/backend/mail2list_web - - -EXPOSE 9999 - -RUN cargo install --path /app/mail2list/backend/mail2list_web -CMD ["mail2list_web"] diff --git a/mail2list/mail2list_backend/debian/config b/mail2list/mail2list_backend/debian/config new file mode 100644 index 0000000000000000000000000000000000000000..db43c9c2313cf4926cb5d83d64ce44b0e9359fa9 --- /dev/null +++ b/mail2list/mail2list_backend/debian/config @@ -0,0 +1,13 @@ +[source.crates-io] +registry = "https://github.com/rust-lang/crates.io-index" + +replace-with = 'tuna' +[source.tuna] +registry = "https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git" + +#replace-with = 'ustc' +#[source.ustc] +#registry = "git://mirrors.ustc.edu.cn/crates.io-index" + +[net] +git-fetch-with-cli = true diff --git a/mail2list/mail2list_backend/debian/run.sh b/mail2list/mail2list_backend/debian/run.sh new file mode 100644 index 0000000000000000000000000000000000000000..c64075839d117ded10cc2ffe29f915614f9905cf --- /dev/null +++ b/mail2list/mail2list_backend/debian/run.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# 命令后加入 & ,保持程序后台持续运行 + ./mail2list_web & + ./mail2list_archive_unsubscribe & +# 死循环,保持docker前台运行 +while [[ true ]]; do + sleep 1 +done \ No newline at end of file diff --git a/mail2list/mail2list_backend/dockerfile b/mail2list/mail2list_backend/dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..f948729a7768b9223b99f9dd5d4bf39b82c0edde --- /dev/null +++ b/mail2list/mail2list_backend/dockerfile @@ -0,0 +1,72 @@ +FROM rust:latest as builder +#FROM ekidd/rust-musl-builder:stable as builder + +RUN USER=root cargo new --bin docker_rust_web +WORKDIR ./docker_rust_web +RUN USER=root cargo new --bin mail2list_archive_unsubscribe \ + && USER=root cargo new --bin mail2list_clap \ + && USER=root cargo new --bin mail2list_common \ + && USER=root cargo new --bin mail2list_web +COPY ./Cargo.toml ./Cargo.toml +COPY ./mail2list_archive_unsubscribe/Cargo.toml ./mail2list_archive_unsubscribe/Cargo.toml +COPY ./mail2list_clap/Cargo.toml ./mail2list_clap/Cargo.toml +COPY ./mail2list_common/Cargo.toml ./mail2list_common/Cargo.toml +COPY ./mail2list_web/Cargo.toml ./mail2list_web/Cargo.toml + +COPY ./debian/config /usr/local/cargo +RUN CARGO_HTTP_MULTIPLEXING=false cargo fetch + +RUN cargo build --release \ + && rm src/*.rs mail2list_archive_unsubscribe/src/*.rs mail2list_clap/src/*.rs mail2list_common/src/*.rs mail2list_web/src/*.rs target/release/deps/mail2list_archive_unsubscribe* target/release/deps/mail2list_clap* target/release/deps/mail2list_common* target/release/deps/mail2list_web* + +ADD . ./ + + +RUN cargo build --release + +#EXPOSE 9999 + +#CMD ["cargo","run","--bin","mail2list_web"] + +FROM debian:bookworm-slim + +ARG APP=/usr/src/app + +RUN echo \ + deb http://mirrors.aliyun.com/debian/ buster main non-free contrib \ +deb http://mirrors.aliyun.com/debian-security buster/updates main \ +deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib\ +deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib\ +deb-src http://mirrors.aliyun.com/debian-security buster/updates main\ +deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib\ +deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib\ +deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib\ +> /etc/apt/sources.list + +RUN apt-get clean\ + && apt-get update \ + && apt-get install -y ca-certificates tzdata \ + && apt-get install -y musl-tools openssl \ + && apt-get install -y iputils-ping \ + && apt-get install -y telnet \ + && rm -rf /var/lib/apt/lists/* + +EXPOSE 9999 + +ENV TZ=Etc/UTC \ + APP_USER=appuser + +RUN groupadd $APP_USER \ + && useradd -g $APP_USER $APP_USER \ + && mkdir -p ${APP} + +COPY --from=builder /docker_rust_web/target/release/mail2list_web ${APP}/mail2list_web +COPY --from=builder /docker_rust_web/target/release/mail2list_archive_unsubscribe ${APP}/mail2list_archive_unsubscribe +COPY --from=builder /docker_rust_web/debian/run.sh ${APP}/debian/run.sh + +RUN chown -R $APP_USER:$APP_USER ${APP} + +USER $APP_USER +WORKDIR ${APP} + +ENTRYPOINT ["./debian/run.sh"] \ No newline at end of file diff --git a/mail2list/mail2list_backend/mail2list_archive_unsubscribe/Cargo.toml b/mail2list/mail2list_backend/mail2list_archive_unsubscribe/Cargo.toml index 87a95b66ca8973e4f5384b8b3f2b7508a482f846..a6e1d79cc16d40a32928b99d506d82610dd2d8ca 100644 --- a/mail2list/mail2list_backend/mail2list_archive_unsubscribe/Cargo.toml +++ b/mail2list/mail2list_backend/mail2list_archive_unsubscribe/Cargo.toml @@ -59,3 +59,5 @@ mailparse = "0.13.8" lettre = "0.10.0-rc.5" lettre_email = "0.9" mime = "0.3.13" +native-tls = "0.2" +regex = "1.5.4" diff --git a/mail2list/mail2list_backend/mail2list_archive_unsubscribe/application.yml b/mail2list/mail2list_backend/mail2list_archive_unsubscribe/application.yml deleted file mode 100644 index 62cd45b04305541276bc185acda53b2a6c14f3b9..0000000000000000000000000000000000000000 --- a/mail2list/mail2list_backend/mail2list_archive_unsubscribe/application.yml +++ /dev/null @@ -1,36 +0,0 @@ -#debug模式,true输出控制台日志,false只输出文件日志.生产环境需要关闭debug,rbatis也需移除"debug_mode" -debug: true -#名称 -server_name: "mail2listWeb" -#server 地址 -server: - host: "0.0.0.0" - port: "9999" -#数据库地址 -database_url: "**********" -#逻辑删除字段 -logic_column: "del" -logic_un_deleted: 0 -logic_deleted: 1 -#日志文件存放目录 -log_dir: "target/logs/" -#日志分割尺寸-单位KB,MB,GB -log_temp_size: "100MB" -#日志打包格式可选“”(空-不压缩)“gzip”(gz压缩包)“zip”(zip压缩包)“lz4”(lz4压缩包(非常快)) -log_pack_compress: "zip" -#日志滚动保留-保留全部: All,按时间保留(秒): KeepTime(i64),按版本保留: KeepNum(i64) -log_rolling_type: "KeepNum(20)" -#日志等级-info,error,warn,debug,trace -log_level: "info" - -email: - mine_email: "**********" - smtp_server: "**********" - password: "**********" - imap_server: "**********" - #一个退订邮箱管理一个社区 - leave_email : "**********" - leave_email_password : "**********" - leave_name: "A-Tune" - leave_smtp_server: "**********" - leave_imap_server: "**********" diff --git a/mail2list/mail2list_backend/mail2list_archive_unsubscribe/src/config/config.rs b/mail2list/mail2list_backend/mail2list_archive_unsubscribe/src/config/config.rs index 838ef04022a4149f29a4fdab9125f4535ce74c04..268f9dad13336767e0b905c97ec7b695ca5b72d7 100644 --- a/mail2list/mail2list_backend/mail2list_archive_unsubscribe/src/config/config.rs +++ b/mail2list/mail2list_backend/mail2list_archive_unsubscribe/src/config/config.rs @@ -1,3 +1,7 @@ +use std::env; +use regex::Regex; +use regex::Captures; +use std::borrow::Cow; #[derive(Debug, PartialEq, serde::Serialize, serde::Deserialize)] pub struct ServerConfig{ ///当前服务地址 @@ -11,6 +15,11 @@ pub struct MailConfig{ pub password : Vec, pub smtp_server : Vec, pub imap_server : Vec, + pub archive_mine_email: Vec, + pub archive_password: Vec, + pub archive_smtp_server: Vec, + pub archive_imap_server: Vec, + pub archive_name: Vec, pub leave_email : Vec, pub leave_email_password : Vec, pub leave_smtp_server : Vec, @@ -47,11 +56,23 @@ pub struct ApplicationConfig { ///默认配置 impl Default for ApplicationConfig { fn default() -> Self { - let yml_data = include_str!("../../application.yml"); + let yml_data = include_str!("../../../mail2list_web/application.yml"); + let yml_config = expand_var(&yml_data).into_owned(); //读取配置 let result: ApplicationConfig = - serde_yaml::from_str(yml_data).expect("配置文件加载失败"); + serde_yaml::from_str(&yml_config).expect("配置文件加载失败"); result } } + +fn expand_var(raw_config: &str) -> Cow { + + let re = Regex::new(r"\$\{([a-zA-Z_][0-9a-zA-Z_]*)\}").unwrap(); + re.replace_all(&raw_config, |caps: &Captures| { + match env::var(&caps[1]) { + Ok(val) => val, + Err(_) => (&caps[0]).to_string(), + } + }) +} diff --git a/mail2list/mail2list_backend/mail2list_archive_unsubscribe/src/main.rs b/mail2list/mail2list_backend/mail2list_archive_unsubscribe/src/main.rs index dfb9285e2080794ac60af447bec284806c8d3a6d..964df748c59ae9e5e0b2c7b22101c72ad16fb869 100644 --- a/mail2list/mail2list_backend/mail2list_archive_unsubscribe/src/main.rs +++ b/mail2list/mail2list_backend/mail2list_archive_unsubscribe/src/main.rs @@ -10,8 +10,6 @@ extern crate imap; #[tokio::main] async fn main() { loop { - let dt = Local::now(); - println!("dt: {}", dt); tokio::spawn(async { email().await; true @@ -25,11 +23,11 @@ async fn email() { let len = MAIL2LIST_CONFIG.email.leave_imap_server.len(); for i in 0..len { let save = archive_mail_list_controller::save( - &MAIL2LIST_CONFIG.email.mine_email[i], - &MAIL2LIST_CONFIG.email.imap_server[i], - &&MAIL2LIST_CONFIG.email.smtp_server[i], - &MAIL2LIST_CONFIG.email.password[i], - &MAIL2LIST_CONFIG.email.leave_name[i], + &MAIL2LIST_CONFIG.email.archive_mine_email[i], + &MAIL2LIST_CONFIG.email.archive_imap_server[i], + &&MAIL2LIST_CONFIG.email.archive_smtp_server[i], + &MAIL2LIST_CONFIG.email.archive_password[i], + &MAIL2LIST_CONFIG.email.archive_name[i], ); let delete = subscribe_mail_list_controller::delete( &MAIL2LIST_CONFIG.email.leave_imap_server[i], diff --git a/mail2list/mail2list_backend/mail2list_web/Cargo.toml b/mail2list/mail2list_backend/mail2list_web/Cargo.toml index ec20363c23959724e4fb80aa995ba3c13ae4d87d..3b8ea62c8bd4cd44d47408945b8316e68c1ef8fb 100644 --- a/mail2list/mail2list_backend/mail2list_web/Cargo.toml +++ b/mail2list/mail2list_backend/mail2list_web/Cargo.toml @@ -56,4 +56,5 @@ percent-encoding = "2.1.0" rand = "0.7.3" imap = "3.0.0-alpha.6" -mailparse = "0.13.8" \ No newline at end of file +mailparse = "0.13.8" +regex = "1.5.4" \ No newline at end of file diff --git a/mail2list/mail2list_backend/mail2list_web/application.yml b/mail2list/mail2list_backend/mail2list_web/application.yml index 80577144fd5eb0a8ca117c8e66a6ba4f69890608..9cf9dc488970249fb13d750203b10e37ccc1c737 100644 --- a/mail2list/mail2list_backend/mail2list_web/application.yml +++ b/mail2list/mail2list_backend/mail2list_web/application.yml @@ -7,7 +7,7 @@ server: host: "0.0.0.0" port: "9999" #数据库地址 -database_url: "postgresql://agree:Bigdata123@47.94.142.147:5432/mail2list" +database_url: "postgresql://${OPENGUASS_USER}:${OPENGUASS_PWD}@${OPENGUASS_URL}:${OPENGUASS_PORT}/${OPENGUASS_DATABASE}" #逻辑删除字段 logic_column: "del" logic_un_deleted: 0 @@ -25,14 +25,20 @@ log_level: "info" email: #此处应该是一个数组 密码以及服务等都应该是一个数组 来对应多个服务 - mine_email: ["529978097@qq.com","180859181@qq.com"] - smtp_server: ["smtp.qq.com","smtp.qq.com"] - password: ["sbvsrwyvunaibjef","evbdadwthgcdcbcf"] - imap_server: ["imap.qq.com","imap.qq.com"] + #这是代表订阅邮箱的地址 + mine_email: "${mine_email}" + smtp_server: "${smtp_server}" + password: "${password}" + imap_server: "${imap_server}" + #这是代表归档邮箱的地址 + archive_mine_email: "${archive_mine_email}" + archive_smtp_server: "${archive_smtp_server}" + archive_password: "${archive_password}" + archive_name: "${archive_name}" + archive_imap_server: "${archive_imap_server}" #一个退订邮箱管理一个社区 - leave_email : ["529978097@qq.com","180859181@qq.com"] - leave_email_password : ["sbvsrwyvunaibjef","evbdadwthgcdcbcf"] - leave_name: ["A-Tune","rust"] - leave_smtp_server: ["smtp.qq.com","smtp.qq.com"] - leave_imap_server: ["imap.qq.com","imap.qq.com"] - + leave_email : "${leave_email}" + leave_email_password : "${leave_email_password}" + leave_name: "${leave_name}" + leave_smtp_server: "${leave_smtp_server}" + leave_imap_server: "${leave_imap_server}" \ No newline at end of file diff --git a/mail2list/mail2list_backend/mail2list_web/src/config/config.rs b/mail2list/mail2list_backend/mail2list_web/src/config/config.rs index 838ef04022a4149f29a4fdab9125f4535ce74c04..eb9464d83923900950956406527a8b05c84828bc 100644 --- a/mail2list/mail2list_backend/mail2list_web/src/config/config.rs +++ b/mail2list/mail2list_backend/mail2list_web/src/config/config.rs @@ -1,3 +1,7 @@ +use std::env; +use regex::Regex; +use regex::Captures; +use std::borrow::Cow; #[derive(Debug, PartialEq, serde::Serialize, serde::Deserialize)] pub struct ServerConfig{ ///当前服务地址 @@ -11,6 +15,11 @@ pub struct MailConfig{ pub password : Vec, pub smtp_server : Vec, pub imap_server : Vec, + pub archive_mine_email: Vec, + pub archive_password: Vec, + pub archive_smtp_server: Vec, + pub archive_imap_server: Vec, + pub archive_name: Vec, pub leave_email : Vec, pub leave_email_password : Vec, pub leave_smtp_server : Vec, @@ -48,10 +57,21 @@ pub struct ApplicationConfig { impl Default for ApplicationConfig { fn default() -> Self { let yml_data = include_str!("../../application.yml"); + let yml_config = expand_var(&yml_data).into_owned(); //读取配置 let result: ApplicationConfig = - serde_yaml::from_str(yml_data).expect("配置文件加载失败"); + serde_yaml::from_str(&yml_config).expect("配置文件加载失败"); result } } +fn expand_var(raw_config: &str) -> Cow { + + let re = Regex::new(r"\$\{([a-zA-Z_][0-9a-zA-Z_]*)\}").unwrap(); + re.replace_all(&raw_config, |caps: &Captures| { + match env::var(&caps[1]) { + Ok(val) => val, + Err(_) => (&caps[0]).to_string(), + } + }) +} diff --git a/mail2list/redeme.md b/mail2list/redeme.md deleted file mode 100644 index 2d8588620d25a1893f82eded4638984e51139506..0000000000000000000000000000000000000000 --- a/mail2list/redeme.md +++ /dev/null @@ -1,31 +0,0 @@ -# 邮箱管理页面使用 - -## 运行数据库 - -安装好openGauss数据库,运行db/mail_list.sql,得到对应的数据结构 - -## 创建数据 - -进入mail2list_backend,运行mail2list_clap,其中add代表增加数据,delete代表删除数据。select代表查看所有值。示例如下: - -```shell -mail2list_clap.exe add --url --id --name --email --archive --description -``` - -```shell -mail2list_clap.exe delete --url --id -``` - -```shell -hello-lettre.exe select --url -``` - -其中,url是数据库地址,剩下为表中字段,添加自己需要添加的值。 - -## 运行后端 - -运行mail2list_web,需要将其中database_url修改成自己的连接。然后运行cargo run 启动后端。 - -## 运行前端 - -使用npm install下载对应的包,在使用npm run dev运行程序。 \ No newline at end of file diff --git a/mail2list/vue-mail2list-web/dockerfile b/mail2list/vue-mail2list-web/dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..6cb54dea914e47538289023661ec1bf85acd6282 --- /dev/null +++ b/mail2list/vue-mail2list-web/dockerfile @@ -0,0 +1,11 @@ +FROM node:14.19.1 as builder +WORKDIR /app +COPY package.json . +RUN npm install --unsafe-perma --registry=http://registry.npm.taobao.org +COPY . . +RUN npm run build + +FROM nginx:latest +COPY --from=builder /app/nginx.conf /etc/nginx/conf.d/ +COPY --from=builder /app/dist /usr/share/nginx/html +EXPOSE 8081 \ No newline at end of file diff --git a/mail2list/vue-mail2list-web/nginx.conf b/mail2list/vue-mail2list-web/nginx.conf new file mode 100644 index 0000000000000000000000000000000000000000..3c8251d6346cebd701554b9a2d2a44e535b287bf --- /dev/null +++ b/mail2list/vue-mail2list-web/nginx.conf @@ -0,0 +1,10 @@ +server { + listen 8081 default_server; + server_name _; + + location / { + root /usr/share/nginx/html; + index index.html index.htm; + try_files $uri $uri/ /index.html; + } +} \ No newline at end of file diff --git a/mail2list/vue-mail2list-web/vue.config.js b/mail2list/vue-mail2list-web/vue.config.js index 542931111ce262c37ec89d0e3b2e9b4444d3a491..222a726c1f90545c0bb104bb7c05e35706a5fbb7 100644 --- a/mail2list/vue-mail2list-web/vue.config.js +++ b/mail2list/vue-mail2list-web/vue.config.js @@ -103,7 +103,7 @@ module.exports = { proxy: { '/maillist': { // target: 'http://10.0.90.119:6002', - target: 'http://127.0.0.1:9999/', + target: 'http://192.168.116.114:9999/', // target: 'http://10.0.90.221:6002', // target: 'http://10.0.85.80:6002/piflow-web/admin', // target: 'http://10.0.85.82:6001',