refactor(test): create common test pkg
This commit is contained in:
8 files changed
+71
No files matched your search
@@ -1,344 +0,0 @@
|
||||
- id: 1000
|
||||
rid: 0
|
||||
content: "Hello Artalk, 你好 Artalk!"
|
||||
page_key: /test/1000.html
|
||||
site_name: Site A
|
||||
user_id: 1000
|
||||
ua: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
|
||||
ip: 10.90.1.1
|
||||
created_at: 2022-04-29 14:44:04
|
||||
updated_at: 2022-04-29 14:44:04
|
||||
|
||||
- id: 1001
|
||||
rid: 1000
|
||||
content: "回复测试 1001"
|
||||
page_key: /test/1000.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
ua: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
|
||||
ip: 10.90.2.101
|
||||
created_at: 2022-04-29 14:44:13
|
||||
updated_at: 2022-04-29 14:44:13
|
||||
|
||||
- id: 1002
|
||||
rid: 1001
|
||||
content: "测试二层嵌套回复 A"
|
||||
page_key: /test/1000.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
ua: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
|
||||
ip: 10.90.2.101
|
||||
created_at: 2022-04-29 16:50:03
|
||||
updated_at: 2022-04-29 16:50:03
|
||||
|
||||
- id: 1003
|
||||
rid: 1001
|
||||
content: "测试二层嵌套回复 B"
|
||||
page_key: /test/1000.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
ua: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
|
||||
ip: 10.90.2.101
|
||||
created_at: 2022-04-29 16:52:37
|
||||
updated_at: 2022-04-29 16:52:37
|
||||
|
||||
- id: 1004
|
||||
rid: 1002
|
||||
content: "测试第三层嵌套回复"
|
||||
page_key: /test/1000.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
ua: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
|
||||
ip: 10.90.2.101
|
||||
created_at: 2022-04-29 16:50:15
|
||||
updated_at: 2022-04-29 16:50:15
|
||||
|
||||
- id: 1005
|
||||
rid: 0
|
||||
content: "「我愛花,我愛詩歌…薇鷗萊特這個名字正是從我最喜歡的薔薇、砂糖與紫羅蘭的詩中得來的。」\n\n《紫羅蘭永恆花園》原作者曉佳奈在小說下卷的前言中這樣寫道。而紫羅蘭的花語是「忠貞不渝的愛情」,正是「永恆」。另外,故事中其他角色的姓名也有許多源於花卉:\n\n - **吉爾伯特** 少佐的姓 **布甘比利亞** 來自三角梅(Bougainvillea),寓意是「熱忱、熱戀」。\n - **嘉德麗雅** 這個名字源自蘭科中的嘉德麗雅蘭(Cattleya),象徵「成熟女性的魅力」。\n - **埃麗卡** 這個名字英語又有歐石楠(Erica)的意思,花語是「孤獨、愛的幸福」。\n - **艾麗絲** 的名字來自希臘神話,同時也指鳶尾花(Iris),花語是「等待愛情」。\n - **莉莉安**(Lilian)這個名字源自拉丁語的百合(Lilium),其花語是「純潔、偉大的愛」。\n - **娜麗** 這個名字源自娜麗花(Nerine),花語是「期待再次見面」。\n - **璐琪莉亞** 這個名字出自法語滇丁香(Luculia),花語是「端莊、優雅的人」。\n - **絡丹瑟** 這個名字是源自希臘語的鱗托菊(Rhodanthe),花語是「永恆的感情」。\n - **布魯貝露** 這個名字英語意為風鈴草(Bluebell),花語是「亙古不變的心」。\n - **依貝莉斯** 這個名字源自希臘語屈曲花(Iberis),花語是「心靈誘惑」。\n - **利昂** 的姓 **斯蒂法諾蒂斯** 出自馬達加斯加茉莉的學名(Stephanotis floribunda),花語是「共赴悠遠旅途、傾聽」。\n - **安** 和她媽媽 **克拉拉** 的姓 **瑪格諾利亞** 出自法語木蘭(Magnolia),其花語是「崇高」。\n\n可以說,這是一部花與愛的故事。\n\n> Roses are red. Violets are blue. Sugar is sweet. And so are you.\n> 玫瑰如此嫣紅,紫羅蘭如此綺麗,砂糖如此甜蜜,正如我心愛的你。"
|
||||
page_key: /test/1000.html
|
||||
site_name: Site A
|
||||
user_id: 1002
|
||||
ua: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1
|
||||
ip: 10.90.2.102
|
||||
created_at: 2022-04-29 14:44:59
|
||||
updated_at: 2022-04-29 14:44:59
|
||||
|
||||
- id: 1006
|
||||
rid: 0
|
||||
content: "在测试站点 2 的评论"
|
||||
page_key: /site_b/1001.html
|
||||
site_name: Site B
|
||||
user_id: 1001
|
||||
ua: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
|
||||
ip: 10.90.2.101
|
||||
created_at: 2022-04-29 14:46:43
|
||||
updated_at: 2022-04-29 14:46:43
|
||||
|
||||
# ---------- 分页测试 ----------
|
||||
# str = ""
|
||||
# for (let i = 10; i <= 60; i++) {
|
||||
# str += `
|
||||
# - id: 10${i}
|
||||
# content: "评论 10${i}"
|
||||
# page_key: /test_pagination.html
|
||||
# site_name: Site A
|
||||
# user_id: 1001`
|
||||
# }
|
||||
# console.log(str)
|
||||
- id: 1010
|
||||
content: "评论 1010"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1011
|
||||
content: "评论 1011"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1012
|
||||
content: "评论 1012"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1013
|
||||
content: "评论 1013"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1014
|
||||
content: "评论 1014"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1015
|
||||
content: "评论 1015"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1016
|
||||
content: "评论 1016"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1017
|
||||
content: "评论 1017"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1018
|
||||
content: "评论 1018"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1019
|
||||
content: "评论 1019"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1020
|
||||
content: "评论 1020"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1021
|
||||
content: "评论 1021"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1022
|
||||
content: "评论 1022"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1023
|
||||
content: "评论 1023"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1024
|
||||
content: "评论 1024"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1025
|
||||
content: "评论 1025"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1026
|
||||
content: "评论 1026"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1027
|
||||
content: "评论 1027"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1028
|
||||
content: "评论 1028"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1029
|
||||
content: "评论 1029"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1030
|
||||
content: "评论 1030"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1031
|
||||
content: "评论 1031"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1032
|
||||
content: "评论 1032"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1033
|
||||
content: "评论 1033"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1034
|
||||
content: "评论 1034"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1035
|
||||
content: "评论 1035"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1036
|
||||
content: "评论 1036"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1037
|
||||
content: "评论 1037"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1038
|
||||
content: "评论 1038"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1039
|
||||
content: "评论 1039"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1040
|
||||
content: "评论 1040"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1041
|
||||
content: "评论 1041"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1042
|
||||
content: "评论 1042"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1043
|
||||
content: "评论 1043"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1044
|
||||
content: "评论 1044"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1045
|
||||
content: "评论 1045"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1046
|
||||
content: "评论 1046"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1047
|
||||
content: "评论 1047"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1048
|
||||
content: "评论 1048"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1049
|
||||
content: "评论 1049"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1050
|
||||
content: "评论 1050"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1051
|
||||
content: "评论 1051"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1052
|
||||
content: "评论 1052"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1053
|
||||
content: "评论 1053"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1054
|
||||
content: "评论 1054"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1055
|
||||
content: "评论 1055"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1056
|
||||
content: "评论 1056"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1057
|
||||
content: "评论 1057"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1058
|
||||
content: "评论 1058"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1059
|
||||
content: "评论 1059"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
- id: 1060
|
||||
content: "评论 1060"
|
||||
page_key: /test_pagination.html
|
||||
site_name: Site A
|
||||
user_id: 1001
|
||||
# -----------------------------
|
||||
@@ -1,27 +0,0 @@
|
||||
- id: 1000
|
||||
user_id: 1000
|
||||
comment_id: 1000
|
||||
is_read: false
|
||||
is_emailed: false
|
||||
key: HL6VH
|
||||
|
||||
- id: 1001
|
||||
user_id: 1000
|
||||
comment_id: 1001
|
||||
is_read: true
|
||||
is_emailed: true
|
||||
key: DB7G8
|
||||
|
||||
- id: 1002
|
||||
user_id: 1001
|
||||
comment_id: 1000
|
||||
is_read: false
|
||||
is_emailed: false
|
||||
key: ZMTM4
|
||||
|
||||
- id: 1003
|
||||
user_id: 1001
|
||||
comment_id: 1001
|
||||
is_read: true
|
||||
is_emailed: true
|
||||
key: 93FHR
|
||||
@@ -1,23 +0,0 @@
|
||||
- id: 1000
|
||||
key: /test/1000.html
|
||||
title: 测试页面标题 1000
|
||||
admin_only: false
|
||||
site_name: Site A
|
||||
created_at: 2022-04-29 14:41:37
|
||||
updated_at: 2022-04-29 14:41:37
|
||||
|
||||
- id: 1001
|
||||
key: /site_b/1001.html
|
||||
title: 测试页面标题 1001
|
||||
admin_only: true
|
||||
site_name: Site B
|
||||
created_at: 2022-04-29 14:45:44
|
||||
updated_at: 2022-04-29 14:45:44
|
||||
|
||||
- id: 1002
|
||||
key: /test_pagination.html
|
||||
title: 分页测试页面
|
||||
admin_only: false
|
||||
site_name: Site A
|
||||
created_at: 2022-04-29 14:47:59
|
||||
updated_at: 2022-04-29 14:47:59
|
||||
@@ -1,11 +0,0 @@
|
||||
- id: 1000
|
||||
name: Site A
|
||||
urls: http://localhost:8080/,https://qwqaq.com
|
||||
created_at: 2022-04-29 14:38:40
|
||||
updated_at: 2022-04-29 14:38:40
|
||||
|
||||
- id: 1001
|
||||
name: Site B
|
||||
urls: http://artalk.js.org/sub_folder/,http://localhost:8081
|
||||
created_at: 2022-04-29 14:38:40
|
||||
updated_at: 2022-04-29 14:38:40
|
||||
@@ -1,33 +0,0 @@
|
||||
- id: 1000
|
||||
name: admin
|
||||
email: admin@qwqaq.com
|
||||
link: https://qwqaq.com
|
||||
password: 123456
|
||||
badge_name: 管理员
|
||||
badge_color: #fff
|
||||
last_ip: 10.90.1.1
|
||||
last_ua: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
|
||||
is_admin: true
|
||||
is_in_conf: true
|
||||
site_names:
|
||||
receive_email: true
|
||||
created_at: 2022-04-29 14:31:53
|
||||
updated_at: 2022-04-29 14:31:53
|
||||
|
||||
- id: 1001
|
||||
name: userA
|
||||
email: user_a@qwqaq.com
|
||||
link: https://example.org/?user=A
|
||||
last_ip: 10.90.2.101
|
||||
last_ua: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
|
||||
created_at: 2022-04-29 14:36:47
|
||||
updated_at: 2022-04-29 14:36:47
|
||||
|
||||
- id: 1002
|
||||
name: userB
|
||||
email: user_b@qwqaq.com
|
||||
link: https://example.org/?user=B
|
||||
last_ip: 10.90.2.102
|
||||
last_ua: Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1
|
||||
created_at: 2022-04-29 14:36:47
|
||||
updated_at: 2022-04-29 14:36:47
|
||||
-161
@@ -1,161 +0,0 @@
|
||||
# This script is used by internal/query/testdata/example_site_conf.yml
|
||||
# Do not modify this script unless you know what you are doing.
|
||||
host: "0.0.0.0"
|
||||
port: 23366
|
||||
app_key: "test"
|
||||
debug: false
|
||||
timezone: "Asia/Shanghai"
|
||||
site_default: "Default Site"
|
||||
login_timeout: 259200
|
||||
db:
|
||||
type: "sqlite"
|
||||
file: "./data/artalk.db"
|
||||
table_prefix: ""
|
||||
name: "artalk"
|
||||
host: "localhost"
|
||||
port: 3306
|
||||
user: "root"
|
||||
password: ""
|
||||
charset: "utf8mb4"
|
||||
|
||||
log:
|
||||
enabled: true
|
||||
filename: "./data/artalk.log"
|
||||
cache:
|
||||
type: "builtin"
|
||||
expires: 30
|
||||
warm_up: false
|
||||
server: ""
|
||||
redis:
|
||||
network: "tcp"
|
||||
username: ""
|
||||
password: ""
|
||||
db: 0
|
||||
trusted_domains: ["http://localhost:1313"]
|
||||
ssl:
|
||||
enabled: false
|
||||
cert_path: ""
|
||||
key_path: ""
|
||||
admin_users:
|
||||
- name: "admin"
|
||||
email: "admin@test.com"
|
||||
password: "admin"
|
||||
badge_name: "Admin"
|
||||
badge_color: "#0083FF"
|
||||
moderator:
|
||||
pending_default: false
|
||||
api_fail_block: false
|
||||
akismet_key: ""
|
||||
tencent:
|
||||
enabled: false
|
||||
secret_id: ""
|
||||
secret_key: ""
|
||||
region: "ap-guangzhou"
|
||||
aliyun:
|
||||
enabled: false
|
||||
access_key_id: ""
|
||||
access_key_secret: ""
|
||||
region: "cn-shanghai"
|
||||
keywords:
|
||||
enabled: false
|
||||
pending: false
|
||||
files:
|
||||
file_sep: "\n"
|
||||
replac_to: "x"
|
||||
captcha:
|
||||
enabled: true
|
||||
always: false
|
||||
action_limit: 3
|
||||
action_reset: 60
|
||||
geetest:
|
||||
enabled: false
|
||||
captcha_id: ""
|
||||
captcha_key: ""
|
||||
email:
|
||||
enabled: false
|
||||
send_type: "smtp"
|
||||
send_name: "{{reply_nick}}"
|
||||
send_addr: "noreply@example.com"
|
||||
mail_tpl: "default"
|
||||
smtp:
|
||||
host: "smtp.qq.com"
|
||||
port: 587
|
||||
username: "example@qq.com"
|
||||
password: ""
|
||||
ali_dm:
|
||||
access_key_id: ""
|
||||
access_key_secret: ""
|
||||
account_name: "noreply@example.com"
|
||||
img_upload:
|
||||
enabled: true
|
||||
path: "./data/artalk-img/"
|
||||
max_size: 5
|
||||
public_path: null
|
||||
upgit:
|
||||
enabled: false
|
||||
exec: "./upgit -c UPGIT_CONF_FILE_PATH -t /artalk-img"
|
||||
del_local: true
|
||||
admin_notify:
|
||||
notify_tpl: "default"
|
||||
noise_mode: false
|
||||
email:
|
||||
enabled: true
|
||||
mail_subject: '[{{site_name}}] Post "{{page_title}}" has new a comment'
|
||||
telegram:
|
||||
enabled: false
|
||||
api_token: ""
|
||||
receivers:
|
||||
- 7777777
|
||||
bark:
|
||||
enabled: false
|
||||
server: "http://day.app/xxxxxxx/"
|
||||
lark:
|
||||
enabled: false
|
||||
webhook_url: ""
|
||||
webhook:
|
||||
enabled: false
|
||||
url: ""
|
||||
ding_talk:
|
||||
enabled: false
|
||||
token: ""
|
||||
secret: ""
|
||||
slack:
|
||||
enabled: false
|
||||
oauth_token: ""
|
||||
receivers:
|
||||
- "CHANNEL_ID"
|
||||
line:
|
||||
enabled: false
|
||||
channel_secret: ""
|
||||
channel_access_token: ""
|
||||
receivers:
|
||||
- "USER_ID_1"
|
||||
- "GROUP_ID_1"
|
||||
frontend:
|
||||
placeholder: "What do you think?"
|
||||
noComment: "No comments yet."
|
||||
sendBtn: "Send"
|
||||
editorTravel: true
|
||||
emoticons: "https://cdn.jsdelivr.net/gh/ArtalkJS/Emoticons/grps/default.json"
|
||||
vote: true
|
||||
voteDown: false
|
||||
uaBadge: true
|
||||
listSort: true
|
||||
pvEl: "#ArtalkPV"
|
||||
countEl: "#ArtalkCount"
|
||||
preview: true
|
||||
flatMode: "auto"
|
||||
nestMax: 2
|
||||
nestSort: DATE_ASC
|
||||
gravatar:
|
||||
mirror: "https://cravatar.cn/avatar/"
|
||||
default: "mp"
|
||||
pagination:
|
||||
pageSize: 20
|
||||
readMore: true
|
||||
autoLoad: true
|
||||
heightLimit:
|
||||
content: 300
|
||||
children: 400
|
||||
reqTimeout: 15000
|
||||
versionCheck: true
|
||||
-31
@@ -1,31 +0,0 @@
|
||||
# 加密密钥
|
||||
app_key: "test"
|
||||
|
||||
# 调试模式
|
||||
debug: false
|
||||
|
||||
# 时区
|
||||
timezone: "Asia/Shanghai"
|
||||
|
||||
# 日志
|
||||
log:
|
||||
enabled: false
|
||||
|
||||
# 缓存
|
||||
cache:
|
||||
type: "disabled" # 支持 redis, memcache, builtin (自带缓存)
|
||||
expires: 30 # 缓存过期时间 (单位:分钟)
|
||||
warm_up: false # 程序启动时预热缓存
|
||||
server: "" # 连接缓存服务器 (例如:"localhost:6379")
|
||||
|
||||
# 默认站点名
|
||||
site_default: "默认站点"
|
||||
|
||||
# 管理员账户
|
||||
admin_users:
|
||||
- name: "admin_in_conf"
|
||||
email: "admin_in_conf@example.org"
|
||||
password: "123456" # 密码支持 bcrypt 或 md5 加密,例如填写:"(md5)50c21190c6e4e5418c6a90d2b5031119"
|
||||
badge_name: "管理员"
|
||||
badge_color: "#FF6C00"
|
||||
|
||||
Reference in new issue
Block a user