From f03d3708dbd09a8fd8c01a19031c77e40d6a3300 Mon Sep 17 00:00:00 2001 From: hectorqin Date: Wed, 2 Aug 2023 16:30:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3=E5=8F=8A?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/bin/startup.cmd | 6 +++--- server/conf/application.properties | 15 ++++++--------- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/server/bin/startup.cmd b/server/bin/startup.cmd index c681f6c5..dfb002bb 100755 --- a/server/bin/startup.cmd +++ b/server/bin/startup.cmd @@ -52,7 +52,7 @@ if not "%NEWEST_JAR%"=="" ( set SERVER=%NEWEST_JAR:.jar=% ) -set MODE="single" +set MODE="" set INVITE_CODE="" set SECURE_KEY="" set MODE_INDEX=-1 @@ -114,7 +114,7 @@ if not %MODE% == "" if not %MODE% == "single" ( rem set reader options @REM set "READER_OPTS=%READER_OPTS% -Dloader.path=%BASE_DIR%/plugins,%BASE_DIR%/plugins/health,%BASE_DIR%/plugins/cmdb,%BASE_DIR%/plugins/selector" -set "READER_OPTS=%READER_OPTS% -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Dreader.app.workDir=%BASE_DIR%" +set "READER_OPTS=%READER_OPTS% -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Dspring.profiles.active=prod -Dreader.app.workDir=%BASE_DIR%" set "READER_OPTS=%READER_OPTS% -jar %BASE_DIR%\target\%SERVER%.jar" rem set reader spring config location @@ -130,7 +130,7 @@ echo Run command: echo %COMMAND% echo -echo Reader is starting, you can check the ${BASE_DIR}/logs/start.out +echo Reader is starting, you can check the %BASE_DIR%\logs rem start reader command %COMMAND% diff --git a/server/conf/application.properties b/server/conf/application.properties index 885b1347..abb4cd6d 100644 --- a/server/conf/application.properties +++ b/server/conf/application.properties @@ -1,14 +1,11 @@ -# 设置工作目录 -# reader.app.workDir=. +# 是否多用户模式,如果启动 startup 脚本时使用了 -m 1 选择多用户模式,-m single 运行单用户模式,否则根据此处的参数选择模式 +reader.app.secure=true -# 是否多用户模式,会被启动脚本的参数覆盖,启动时使用 -m 1 选择多用户模式,否则运行单用户模式 -# reader.app.secure=false +# 邀请码,如果启动 startup 脚本时使用了参数 -i 邀请码,则会覆盖此处 +reader.app.inviteCode= -# 邀请码,会被启动脚本的参数覆盖,启动时使用 -i 邀请码 进行修改 -# reader.app.inviteCode= - -# 管理密码,会被启动脚本的参数覆盖,启动时使用 -k 管理密码 进行修改 -# reader.app.secureKey= +# 管理密码,如果启动 startup 脚本时使用了参数 -k 管理密码,则会覆盖此处 +reader.app.secureKey= # 书源代理可通过 header 设置