应用标准化

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
新疆萌森软件开发工作室 2024-11-27 18:11:13 +08:00
parent 593018d97a
commit 0093aeb9ad
6 changed files with 45 additions and 1 deletions

View File

@ -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

View File

@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env

View 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

View File

@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai

View File

@ -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."

View File

@ -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."