diff --git a/webapi/setting.py b/webapi/setting.py index 4d4eccb14b3af3655c00dbfd08f36f764c491535..c5bf57c29f199412d2f339dfcdb3a25144f5f422 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/webapp.dockerfile b/webapp.dockerfile index 916af0fcb07e85f80d449cd24ac5d0969e4ba869..b3d54fdbaba95fe1a472f6926389aab4a083cb9e 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/ diff --git a/webui/src/views/AdminViews/Login/index.vue b/webui/src/views/AdminViews/Login/index.vue index a09468f9e31d89a8d92d007e8a599c91522c5ce3..edea6ada9bcd323113b04215107a31112c8c72a0 100644 --- a/webui/src/views/AdminViews/Login/index.vue +++ b/webui/src/views/AdminViews/Login/index.vue @@ -1,6 +1,7 @@