diff --git a/apps/gitea/1.22.4/docker-compose.yml b/apps/gitea/1.22.4/docker-compose.yml index 81d46f03..0cb3d4ed 100644 --- a/apps/gitea/1.22.4/docker-compose.yml +++ b/apps/gitea/1.22.4/docker-compose.yml @@ -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 diff --git a/apps/gitea/1.22.4/envs/default.env b/apps/gitea/1.22.4/envs/default.env new file mode 100644 index 00000000..cd05f46e --- /dev/null +++ b/apps/gitea/1.22.4/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/apps/gitea/1.22.4/envs/gitea.env b/apps/gitea/1.22.4/envs/gitea.env new file mode 100644 index 00000000..1ead1944 --- /dev/null +++ b/apps/gitea/1.22.4/envs/gitea.env @@ -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 diff --git a/apps/gitea/1.22.4/envs/global.env b/apps/gitea/1.22.4/envs/global.env new file mode 100644 index 00000000..e10989fe --- /dev/null +++ b/apps/gitea/1.22.4/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/apps/gitea/1.22.4/scripts/init.sh b/apps/gitea/1.22.4/scripts/init.sh index 07fb8c3f..636a6213 100644 --- a/apps/gitea/1.22.4/scripts/init.sh +++ b/apps/gitea/1.22.4/scripts/init.sh @@ -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." diff --git a/apps/gitea/1.22.4/scripts/upgrade.sh b/apps/gitea/1.22.4/scripts/upgrade.sh index 07fb8c3f..636a6213 100644 --- a/apps/gitea/1.22.4/scripts/upgrade.sh +++ b/apps/gitea/1.22.4/scripts/upgrade.sh @@ -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."