-
Notifications
You must be signed in to change notification settings - Fork 83
配置文件
MeetWq edited this page Nov 27, 2024
·
4 revisions
默认配置文件位置:
- Windows:
C:\Users\<username>\AppData\Roaming\meme_generator\config.toml
- Linux:
~/.config/meme_generator/config.toml
- Mac:
~/Library/Application Support/meme_generator/config.toml
默认配置文件不会自动生成,如果要修改配置需要在对应的文件位置自行创建配置文件
默认配置:
[meme]
load_builtin_memes = true # 是否加载内置表情包
meme_dirs = [] # 加载其他位置的表情包,填写文件夹路径
meme_disabled_list = [] # 禁用的表情包列表,填写表情的 `key`
[resource]
# 下载内置表情包图片时的资源链接,下载时选择最快的站点
resource_urls = [
"https://raw.githubusercontent.com/MeetWq/meme-generator/",
"https://mirror.ghproxy.com/https://raw.githubusercontent.com/MeetWq/meme-generator/",
"https://cdn.jsdelivr.net/gh/MeetWq/meme-generator@",
"https://fastly.jsdelivr.net/gh/MeetWq/meme-generator@",
"https://raw.gitmirror.com/MeetWq/meme-generator/",
]
[gif]
gif_max_size = 10.0 # 限制生成的 gif 文件大小,单位为 Mb
gif_max_frames = 100 # 限制生成的 gif 文件帧数
[translate]
baidu_trans_appid = "" # 百度翻译api相关,表情包 `dianzhongdian` 需要使用
baidu_trans_apikey = "" # 可在 百度翻译开放平台 (http://api.fanyi.baidu.com) 申请
[server]
host = "127.0.0.1" # web server 监听地址
port = 2233 # web server 端口
[log]
log_level = "INFO" # 日志等级