应用标准化

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
2024-11-27 18:40:30 +08:00
parent 0555c9b2a6
commit 1165dcd41c
26 changed files with 1180 additions and 7 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- /etc/1panel/envs/onedev/onedev.env
- ${APP_ENV_FILE:-/etc/1panel/envs/onedev/onedev.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
environment:
- initial_user=${INITIAL_USER}
+29
View File
@@ -0,0 +1,29 @@
# 外部数据库支持配置
# PostgreSQL
# hibernate_dialect=io.onedev.server.persistence.PostgreSQLDialect
# hibernate_connection_driver_class=org.postgresql.Driver
# hibernate_connection_url=jdbc:postgresql://localhost:5432/onedev
# hibernate_connection_username=postgres
# hibernate_connection_password=postgres
# MySQL
# hibernate_dialect=org.hibernate.dialect.MySQL5InnoDBDialect
# hibernate_connection_driver_class=com.mysql.cj.jdbc.Driver
# hibernate_connection_url=jdbc:mysql://localhost:3306/onedev?serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false&disableMariaDbDriver=true
# hibernate_connection_username=root
# hibernate_connection_password=root
# MariaDB
# hibernate_dialect=org.hibernate.dialect.MySQL5InnoDBDialect
# hibernate_connection_driver_class=org.mariadb.jdbc.Driver
# hibernate_connection_url=jdbc:mariadb://localhost:3306/onedev
# hibernate_connection_username=root
# hibernate_connection_password=root
# MS SQL Server
# hibernate_dialect=org.hibernate.dialect.SQLServer2012Dialect
# hibernate_connection_driver_class=com.microsoft.sqlserver.jdbc.SQLServerDriver
# hibernate_connection_url=jdbc:sqlserver://localhost:1433;databaseName=onedev
# hibernate_connection_username=sa
# hibernate_connection_password=sa
+2
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/onedev.env" >> .env
echo "Check Finish."
+2
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/onedev.env" >> .env
echo "Check Finish."