From 09157a47fb85398d93247f8885c875a578499651 Mon Sep 17 00:00:00 2001 From: Lion Yie Date: Sun, 22 Oct 2023 10:47:02 +0800 Subject: [PATCH 1/2] chore: Update webapp.dockerfile --- webapp.dockerfile | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/webapp.dockerfile b/webapp.dockerfile index 916af0f..b3d54fd 100644 --- a/webapp.dockerfile +++ b/webapp.dockerfile @@ -8,21 +8,24 @@ RUN npm run build:prod FROM python:3.7-buster -RUN echo 'deb http://mirrors.163.com/debian/ stretch main non-free contrib' > /etc/apt/sources.list -RUN echo 'deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib' >> /etc/apt/sources.list -RUN echo 'deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib' >> /etc/apt/sources.list -RUN apt update -RUN apt install -y libtinfo5 --allow-remove-essential -RUN apt install -y ncurses-base -RUN apt install -y vim +RUN echo 'deb http://archive.debian.org/debian/ stretch main contrib non-free \ + deb-src http://archive.debian.org/debian/ stretch main contrib non-free \ + deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free \ + deb-src http://archive.debian.org/debian-security/ stretch/updates main contrib non-free \ + deb http://archive.debian.org/debian/ stretch-backports main contrib non-free \ + ' > /etc/apt/sources.list && \ + apt-get update && \ + apt update && \ + apt install -y libtinfo5 --allow-remove-essential && \ + apt install -y ncurses-base WORKDIR /workspace COPY webapi webapi WORKDIR /workspace/webapi -RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple -RUN pip install -U setuptools -RUN pip install -r requirements.txt +RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && \ + pip install -U setuptools && \ + pip install -r requirements.txt COPY --from=buildWeb /workspace/webui/dist/static static COPY --from=buildWeb /workspace/webui/dist/index.html static/ -- Gitee From 6e985392879327c863a5120c2a9e2c4540c18490 Mon Sep 17 00:00:00 2001 From: Lion Yie Date: Sun, 22 Oct 2023 10:54:22 +0800 Subject: [PATCH 2/2] chore: Update default configuration Description: Change the unified default password to:ADMIN_PASSWORD=fastapivueblog12306 --- webapi/setting.py | 2 +- webui/src/views/AdminViews/Login/index.vue | 42 +++++++------------ .../src/views/AdminViews/Login/index_new.vue | 31 +++++++------- 3 files changed, 30 insertions(+), 45 deletions(-) diff --git a/webapi/setting.py b/webapi/setting.py index 4d4eccb..c5bf57c 100644 --- a/webapi/setting.py +++ b/webapi/setting.py @@ -15,7 +15,7 @@ class Settings(BaseSettings): # 默认管理员账号密码等信息 ADMIN_USERNAME = dotenv_config.get('ADMIN_USERNAME', 'admin') - ADMIN_PASSWORD = dotenv_config.get('ADMIN_PASSWORD', '123456') + ADMIN_PASSWORD = dotenv_config.get('ADMIN_PASSWORD', 'fastapivueblog12306') ADMIN_NICKNAME = dotenv_config.get('ADMIN_NICKNAME', 'admin') ADMIN_EMAIL = dotenv_config.get('ADMIN_EMAIL', '1104440778@qq.com') diff --git a/webui/src/views/AdminViews/Login/index.vue b/webui/src/views/AdminViews/Login/index.vue index a09468f..edea6ad 100644 --- a/webui/src/views/AdminViews/Login/index.vue +++ b/webui/src/views/AdminViews/Login/index.vue @@ -1,6 +1,7 @@