Files
kenaito-media-picker/application.properties
T

21 lines
1.1 KiB
Properties
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Web 服务基础配置(cmd/server/main.go 使用,CLI 整理功能不读取)
appname=kenaito-media-picker
server.port=8080
# 启动后自动打开浏览器(false 则不自动打开)
server.autoOpen=true
# 媒体信息数据库路径;留空或相对路径时相对服务启动目录(如 media-info.db)
database.dsn=media-info.db
# ffmpeg 程序路径(用于把带 EXIF 旋转标记的图片转正);留空自动在 PATH 里找
ffmpeg.path=
# 整理时是否自动转正带 EXIF 旋转标记的图片(true=是,默认;false=只按显示方向归类不转正)
organize.rotateImages=true
# 探测/认类型/移动阶段的并发 worker 数(默认 4;0 表示用满全部 CPU 核数)
organize.workers=4
# 色情图片识别(需本机安装 python 与 nudenet:pip install nudenet):
# true=开启,判为色情的图片移入「图片_敏感_*」目录(明暗子目录照常);false=关闭(默认)
nsfw.enabled=false
# python 可执行文件路径;留空自动在 PATH 里找 python/python3/py
nsfw.python=
# 判定阈值 0~1,敏感部位检测分高于此才算色情(默认 0.5)
nsfw.threshold=0.5