(refactor) Remove env files and scripts, update config files
This commit is contained in:
@@ -19,7 +19,7 @@ additionalProperties:
|
||||
value: mysql
|
||||
- label: Percona
|
||||
value: percona
|
||||
- default: "/home/feedback"
|
||||
- default: "./data"
|
||||
edit: true
|
||||
envKey: FEEDBACK_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
|
||||
@@ -13,10 +13,12 @@ services:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:8080
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${FEEDBACK_ROOT_PATH}/data:/app/public/data
|
||||
- ${FEEDBACK_ROOT_PATH}:/app/public/data
|
||||
environment:
|
||||
- FEEDBACK_BEI_AN=${FEEDBACK_BEI_AN}
|
||||
- FEEDBACK_WEBSITE=${FEEDBACK_WEBSITE}
|
||||
- MYSQL_URL=jdbc:mariadb://${DB_HOSTNAME}:${DB_PORT}/${DB_NAME}?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai
|
||||
- MYSQL_USERNAME=${MYSQL_USERNAME}
|
||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||
- TZ=Asia/Shanghai
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
@@ -1,2 +0,0 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -7,8 +7,7 @@ alter table user_account
|
||||
add plugin_id varchar(32) default '' not null comment '插件ID,只有uTools注册的才有';
|
||||
|
||||
alter table user_account
|
||||
drop
|
||||
key user_account_auth_method_auth_key_uindex;
|
||||
drop key user_account_auth_method_auth_key_uindex;
|
||||
|
||||
alter table update_log
|
||||
add view_count int unsigned default 0 not null comment '浏览数量';
|
||||
@@ -22,81 +21,81 @@ alter table update_log
|
||||
|
||||
create table update_log_reply
|
||||
(
|
||||
id varchar(32) not null
|
||||
id varchar(32) not null
|
||||
primary key,
|
||||
|
||||
is_delete tinyint(1) unsigned default 0 not null comment '逻辑删除',
|
||||
create_id varchar(32) default '' not null comment '创建人',
|
||||
create_time datetime default '1970-01-01 00:00:00' not null comment '创建时间',
|
||||
update_id varchar(32) default '' not null comment '更新人',
|
||||
update_time datetime default '1970-01-01 00:00:00' not null comment '更新时间',
|
||||
is_delete tinyint(1) unsigned default 0 not null comment '逻辑删除',
|
||||
create_id varchar(32) default '' not null comment '创建人',
|
||||
create_time datetime default '1970-01-01 00:00:00' not null comment '创建时间',
|
||||
update_id varchar(32) default '' not null comment '更新人',
|
||||
update_time datetime default '1970-01-01 00:00:00' not null comment '更新时间',
|
||||
|
||||
plugin_id varchar(32) not null default '' comment '插件ID',
|
||||
update_log_id varchar(32) not null default '' comment '博客ID',
|
||||
plugin_id varchar(32) not null default '' comment '插件ID',
|
||||
update_log_id varchar(32) not null default '' comment '博客ID',
|
||||
|
||||
content varchar(512) not null default '' comment '回复内容'
|
||||
content varchar(512) not null default '' comment '回复内容'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_swedish_ci comment '博客评论表';
|
||||
|
||||
create table story
|
||||
(
|
||||
id varchar(32) not null
|
||||
id varchar(32) not null
|
||||
primary key,
|
||||
|
||||
is_delete tinyint(1) unsigned default 0 not null comment '逻辑删除',
|
||||
create_id varchar(32) default '' not null comment '创建人',
|
||||
create_time datetime default '1970-01-01 00:00:00' not null comment '创建时间',
|
||||
update_id varchar(32) default '' not null comment '更新人',
|
||||
update_time datetime default '1970-01-01 00:00:00' not null comment '更新时间',
|
||||
is_delete tinyint(1) unsigned default 0 not null comment '逻辑删除',
|
||||
create_id varchar(32) default '' not null comment '创建人',
|
||||
create_time datetime default '1970-01-01 00:00:00' not null comment '创建时间',
|
||||
update_id varchar(32) default '' not null comment '更新人',
|
||||
update_time datetime default '1970-01-01 00:00:00' not null comment '更新时间',
|
||||
|
||||
plugin_id varchar(32) not null default '' comment '插件ID',
|
||||
sort int unsigned default 0 not null comment '排序',
|
||||
title varchar(64) default '' not null comment '标题',
|
||||
content longtext not null comment '内容',
|
||||
view_count int unsigned default 0 not null comment '浏览数',
|
||||
like_count int unsigned default 0 not null comment '喜欢数'
|
||||
plugin_id varchar(32) not null default '' comment '插件ID',
|
||||
sort int unsigned default 0 not null comment '排序',
|
||||
title varchar(64) default '' not null comment '标题',
|
||||
content longtext not null comment '内容',
|
||||
view_count int unsigned default 0 not null comment '浏览数',
|
||||
like_count int unsigned default 0 not null comment '喜欢数'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_swedish_ci comment '我们的故事';
|
||||
|
||||
create table faq_group
|
||||
(
|
||||
id varchar(32) not null
|
||||
id varchar(32) not null
|
||||
primary key,
|
||||
|
||||
is_delete tinyint(1) unsigned default 0 not null comment '逻辑删除',
|
||||
create_id varchar(32) default '' not null comment '创建人',
|
||||
create_time datetime default '1970-01-01 00:00:00' not null comment '创建时间',
|
||||
update_id varchar(32) default '' not null comment '更新人',
|
||||
update_time datetime default '1970-01-01 00:00:00' not null comment '更新时间',
|
||||
is_delete tinyint(1) unsigned default 0 not null comment '逻辑删除',
|
||||
create_id varchar(32) default '' not null comment '创建人',
|
||||
create_time datetime default '1970-01-01 00:00:00' not null comment '创建时间',
|
||||
update_id varchar(32) default '' not null comment '更新人',
|
||||
update_time datetime default '1970-01-01 00:00:00' not null comment '更新时间',
|
||||
|
||||
plugin_id varchar(32) not null default '' comment '插件ID',
|
||||
title varchar(256) default '' not null comment '分类标题',
|
||||
sort int unsigned default 0 not null comment '排序'
|
||||
plugin_id varchar(32) not null default '' comment '插件ID',
|
||||
title varchar(256) default '' not null comment '分类标题',
|
||||
sort int unsigned default 0 not null comment '排序'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_swedish_ci comment '常见问题-分类';
|
||||
|
||||
create table faq
|
||||
(
|
||||
id varchar(32) not null
|
||||
id varchar(32) not null
|
||||
primary key,
|
||||
|
||||
is_delete tinyint(1) unsigned default 0 not null comment '逻辑删除',
|
||||
create_id varchar(32) default '' not null comment '创建人',
|
||||
create_time datetime default '1970-01-01 00:00:00' not null comment '创建时间',
|
||||
update_id varchar(32) default '' not null comment '更新人',
|
||||
update_time datetime default '1970-01-01 00:00:00' not null comment '更新时间',
|
||||
is_delete tinyint(1) unsigned default 0 not null comment '逻辑删除',
|
||||
create_id varchar(32) default '' not null comment '创建人',
|
||||
create_time datetime default '1970-01-01 00:00:00' not null comment '创建时间',
|
||||
update_id varchar(32) default '' not null comment '更新人',
|
||||
update_time datetime default '1970-01-01 00:00:00' not null comment '更新时间',
|
||||
|
||||
plugin_id varchar(32) not null default '' comment '插件ID',
|
||||
group_id varchar(32) default '' not null comment '所属分类',
|
||||
plugin_id varchar(32) not null default '' comment '插件ID',
|
||||
group_id varchar(32) default '' not null comment '所属分类',
|
||||
|
||||
title varchar(256) default '' not null comment '分类标题',
|
||||
sort int unsigned default 0 not null comment '排序',
|
||||
title varchar(256) default '' not null comment '分类标题',
|
||||
sort int unsigned default 0 not null comment '排序',
|
||||
|
||||
view_count int unsigned default 0 not null comment '浏览数',
|
||||
like_count int unsigned default 0 not null comment '喜欢数',
|
||||
no_like_count int unsigned default 0 not null comment '不喜欢数量'
|
||||
view_count int unsigned default 0 not null comment '浏览数',
|
||||
like_count int unsigned default 0 not null comment '喜欢数',
|
||||
no_like_count int unsigned default 0 not null comment '不喜欢数量'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_swedish_ci comment '常见问题';
|
||||
|
||||
create table faq_content
|
||||
(
|
||||
id varchar(32) not null primary key,
|
||||
id varchar(32) not null primary key,
|
||||
is_delete tinyint(1) unsigned not null default 0 comment '逻辑删除',
|
||||
content longtext not null comment '内容,Markdown,让前端去渲染'
|
||||
content longtext not null comment '内容,Markdown,让前端去渲染'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_swedish_ci comment '常见问题内容表';
|
||||
|
||||
Reference in New Issue
Block a user