Browse Source

0.6.0 Releases add bug notify

pull/24/head
StarsL.cn 2 years ago
parent
commit
fc8d1604ad
  1. 7
      flask-consul/Dockerfile
  2. 11
      flask-consul/Dockerfile.bak_aliyun
  3. 2
      vue-consul/src/views/avd/index.vue

7
flask-consul/Dockerfile

@ -1,11 +1,10 @@
FROM python:3-alpine
ADD . /flask
WORKDIR /flask
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
RUN sed -i 's/dl-cdn.alpinelinux.org/repo.huaweicloud.com/g' /etc/apk/repositories \
&& apk add --no-cache gcc libc-dev libffi-dev \
&& rm -rf /var/cache/apk/* \
&& pip3 install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple \
&& pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple
&& pip3 install --upgrade pip -i https://repo.huaweicloud.com/repository/pypi/simple \
&& pip3 install -r requirements.txt -i https://repo.huaweicloud.com/repository/pypi/simple
EXPOSE 2026
CMD ["python3","./manager.py"]

11
flask-consul/Dockerfile.bak_aliyun

@ -0,0 +1,11 @@
FROM python:3-alpine
ADD . /flask
WORKDIR /flask
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& apk add --no-cache gcc libc-dev libffi-dev \
&& rm -rf /var/cache/apk/* \
&& pip3 install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple \
&& pip3 install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple
EXPOSE 2026
CMD ["python3","./manager.py"]

2
vue-consul/src/views/avd/index.vue

@ -11,7 +11,7 @@
<el-switch v-model="avd_config.dingding" />
</el-form-item>
<el-form-item v-if="avd_config.switch && avd_config.dingding" required label="机器人Webhook地址">
<el-input v-model="avd_config.dingdingwh" type="textarea" autosize />
<el-input v-model="avd_config.dingdingwh" type="textarea" autosize /><font size="2" color="#ff0000">机器人安全设置的自定义关键词请设置为<strong>漏洞告警</strong></font>
</el-form-item>
<el-form-item v-if="avd_config.switch" label="企业微信通知">
<el-switch v-model="avd_config.wecom" />

Loading…
Cancel
Save