mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-28 13:16:13 +08:00
应用标准化
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
parent
593018d97a
commit
0093aeb9ad
@ -16,7 +16,7 @@ services:
|
||||
- ${PANEL_APP_PORT_SSH}:22
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- /etc/1panel/envs/gitea/gitea.env
|
||||
- ${APP_ENV_FILE:-/etc/1panel/envs/gitea/gitea.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${GITEA_ROOT_PATH}/data:/data
|
||||
|
2
apps/gitea/1.22.4/envs/default.env
Normal file
2
apps/gitea/1.22.4/envs/default.env
Normal file
@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
36
apps/gitea/1.22.4/envs/gitea.env
Normal file
36
apps/gitea/1.22.4/envs/gitea.env
Normal file
@ -0,0 +1,36 @@
|
||||
USER_UID=1000
|
||||
USER_GID=1000
|
||||
APP_NAME="Gitea"
|
||||
RUN_MODE=prod
|
||||
DOMAIN=localhost
|
||||
SSH_DOMAIN=localhost
|
||||
SSH_PORT=22
|
||||
SSH_LISTEN_PORT=22
|
||||
DISABLE_SSH=false
|
||||
HTTP_PORT=3000
|
||||
ROOT_URL=""
|
||||
LFS_START_SERVER=true
|
||||
DB_TYPE=sqlite3
|
||||
DB_HOST=""
|
||||
DB_NAME=""
|
||||
DB_USER=""
|
||||
DB_PASSWD=""
|
||||
INSTALL_LOCK=false
|
||||
SECRET_KEY=""
|
||||
DISABLE_REGISTRATION=false
|
||||
REQUIRE_SIGNIN_VIEW=false
|
||||
GITEA__time__DEFAULT_UI_LOCATION=Asia/Shanghai
|
||||
GITEA__migrations__ALLOW_LOCALNETWORKS=true
|
||||
GITEA__api__ENABLE_SWAGGER=false
|
||||
GITEA__ui.meta__AUTHOR=新疆萌森软件开发工作室
|
||||
GITEA__ui.meta__DESCRIPTION=轻量级代码托管解决方案,支持自建和托管服务。
|
||||
GITEA__ui.meta__KEYWORDS=git,gitea,github,gitlab,gitee,code
|
||||
GITEA__security__LOGIN_REMEMBER_DAYS=3
|
||||
GITEA__server__LOCAL_ROOT_URL=http://localhost:3000/
|
||||
GITEA__webhook__ALLOWED_HOST_LIST=*
|
||||
GITEA__picture__REPOSITORY_AVATAR_FALLBACK=random
|
||||
GITEA__attachment__MAX_SIZE=1024
|
||||
GITEA__git__MAX_GIT_DIFF_LINES=10000
|
||||
GITEA__git.config__http.postBuffer=2147483648
|
||||
GITEA__git.config__core.compression=0
|
||||
GITEA__other__SHOW_FOOTER_POWERED_BY=false
|
2
apps/gitea/1.22.4/envs/global.env
Normal file
2
apps/gitea/1.22.4/envs/global.env
Normal file
@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
@ -7,8 +7,10 @@ if [ -f .env ]; then
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
sed -i '/^APP_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
echo "APP_ENV_FILE=${CURRENT_DIR}/envs/gitea.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
|
@ -7,8 +7,10 @@ if [ -f .env ]; then
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
sed -i '/^APP_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
echo "APP_ENV_FILE=${CURRENT_DIR}/envs/gitea.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user