数据库表重新设计,精简数据结构以及存储结构

This commit is contained in:
2026-01-30 23:02:59 +08:00
parent e40677f105
commit 49c78506b2
11 changed files with 359 additions and 319 deletions

View File

@@ -1,7 +1,6 @@
server:
port: 8080
base_url: ""
log:
level: info
filename: data/logs/app.log
@@ -13,25 +12,20 @@ log:
log_console: true
show_db_log: false
db_log_level: info
api:
mode: local # local | redirect
enable_mkt_fallback: true # 当请求的地区不存在时,是否回退到默认地区
enable_on_demand_fetch: false # 是否开启按需抓取(当数据库中没有请求的地区图片时,实时从 Bing 抓取)
mode: redirect
enable_mkt_fallback: false
enable_on_demand_fetch: false
cron:
enabled: true
daily_spec: "20 8-23/4 * * *"
daily_spec: 20 8-23/4 * * *
retention:
days: 0
db:
type: sqlite # sqlite | mysql | postgres
type: sqlite
dsn: data/bing_paper.db
storage:
type: local # local | s3 | webdav
type: local
local:
root: data/picture
s3:
@@ -47,15 +41,28 @@ storage:
username: ""
password: ""
public_url_prefix: ""
admin:
password_bcrypt: "$2a$10$fYHPeWHmwObephJvtlyH1O8DIgaLk5TINbi9BOezo2M8cSjmJchka" # 默认密码: admin123
password_bcrypt: $2a$10$fYHPeWHmwObephJvtlyH1O8DIgaLk5TINbi9BOezo2M8cSjmJchka
token:
default_ttl: 168h
feature:
write_daily_files: true
web:
path: web
fetcher:
regions:
- zh-CN
- en-US
- ja-JP
- en-AU
- en-GB
- de-DE
- en-NZ
- en-CA
- fr-FR
- it-IT
- es-ES
- pt-BR
- ko-KR
- en-IN
- ru-RU