summaryrefslogtreecommitdiff
path: root/src/main/resources/config.json
diff options
context:
space:
mode:
authorzhanghongqing <[email protected]>2022-08-09 16:54:16 +0800
committerzhanghongqing <[email protected]>2022-08-09 16:54:16 +0800
commitb3fa11d4b1b5a68d7b04fde5eb6cfbda557927eb (patch)
treea49d344e49fc427fbf4cf00aa4963c4d04cd98a4 /src/main/resources/config.json
parentd8a2be0d094ac9ba2d47c81ebf03b3fe6e34a078 (diff)
initializeHEADmain
Diffstat (limited to 'src/main/resources/config.json')
-rw-r--r--src/main/resources/config.json148
1 files changed, 148 insertions, 0 deletions
diff --git a/src/main/resources/config.json b/src/main/resources/config.json
new file mode 100644
index 0000000..d862a3c
--- /dev/null
+++ b/src/main/resources/config.json
@@ -0,0 +1,148 @@
+{
+ "system": {
+ "authentication": "shiro"
+ },
+ "global": {
+ "uploadPath": {
+ "windows": "upload",
+ "mac": "upload",
+ "linux": "upload"
+ },
+ "uploadForm": "yyyyMMdd",
+ "tokenPath": {
+ "windows": "token.json",
+ "mac": "token.json",
+ "linux": "token.json"
+ },
+ "allowRegister": true,
+ "allowLogin": true,
+ "loadParticle": false,
+ "anonymousUser": {
+ "visible": true,
+ "downloadable": true
+ },
+ "css": [
+ {
+ "selector": ".random-image",
+ "style": [
+ "background-color: #800080",
+ "color: #FFF300"
+ ]
+ },
+ {
+ "selector": ".jq-nav-item a",
+ "style": "color: #FFF300"
+ },
+ {
+ "selector": ".jq-nav",
+ "style": "background-color: #800080"
+ },
+ {
+ "selector": [
+ ".content-box",
+ ".form-control"
+ ],
+ "style": "background: rgba(255,255,255,0.8)"
+ },
+ {
+ "selector": ".btn",
+ "style": "opacity: 0.8"
+ }
+ ],
+ "background": {
+ "useImage": true,
+ "imageIndex": 0,
+ "imageList": [
+ "https://fakedog.xyz/homedb/srcm/upload/20180123/bg_1.jpg",
+ "https://fakedog.xyz/homedb/srcm/upload/20180123/bg_2.jpg",
+ "https://fakedog.xyz/homedb/srcm/upload/20180123/bg_3.jpg"
+ ],
+ "random": true,
+ "listGenerator": {
+ "enable": true,
+ "prefix": "https://fakedog.xyz/image/background/anime/bg_",
+ "suffix": ".jpg",
+ "start": 1,
+ "end": 158
+ }
+ }
+ },
+ "user": {
+ "pageSize": 30,
+ "password": {
+ "minLength": 6,
+ "maxLength": 20
+ },
+ "emailVerify": false,
+ "emailConfig": {
+ "host": "",
+ "port": 587,
+ "personal": "efo",
+ "from": "[email protected]",
+ "key": "123456",
+ "ssl": false
+ },
+ "usernameMatch": {
+ "pattern": "^[a-zA-Z][a-zA-Z0-9]{3,15}$",
+ "description": "用户名只能使用长度为4到16位的英文字母和数字,且必须以字母开始"
+ },
+ "defaultAuth": {
+ "isDownloadable": true,
+ "isUploadable": true,
+ "isDeletable": false,
+ "isUpdatable": false,
+ "isVisible": true
+ },
+ "orderBy": "id desc"
+ },
+ "download": {
+ "pageSize": 30,
+ "orderBy": "id desc"
+ },
+ "auth": {
+ "pageSize": 30,
+ "orderBy": "id desc",
+ "default": {
+ "isDownloadable": true,
+ "isUploadable": true,
+ "isDeletable": true,
+ "isUpdatable": true,
+ "isVisible": true
+ }
+ },
+ "file": {
+ "pageSize": 30,
+ "maxSize": "10240 MB",
+ "tag": {
+ "require": false,
+ "maxLength": 5,
+ "maxSize": 5
+ },
+ "orderBy": "id desc",
+ "coverIfExists": false,
+ "linkRule": {
+ "custom": "/{year}/{month}/{day}/{randomId}{fileSuffix}",
+ "support": [
+ "{year}",
+ "{month}",
+ "{day}",
+ "{author}",
+ "{fileName}",
+ "{categoryName}",
+ "{randomId}",
+ "{fileSuffix}"
+ ]
+ },
+ "suffixMatch": {
+ "pattern": "[a-zA-Z0-9]{0,10}",
+ "description": "文件后缀只能包括数字和字母且长度不超过10"
+ },
+ "defaultAuth": {
+ "isDownloadable": true,
+ "isUploadable": true,
+ "isDeletable": true,
+ "isUpdatable": true,
+ "isVisible": true
+ }
+ }
+} \ No newline at end of file