示例站点:有图床
一个纯粹的开源图床,聚焦图床核心功能,抛去用户验证、上传限制,自带鉴黄功能
docker run --name=yopngs -d -p 8081:80 -v /yopngs:/yopngs -v /yopngs_config:/app/config --restart=always xpnas/yopngs:latest
docker run --name=yopngs -d -p 8081:80 -v /yopngs:/yopngs -v /yopngs_config:/app/config --restart=always xpnas/yopngs:master
server
{
location / {
proxy_pass http://localhost:8081;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
所有配置都在config目录下的setting.json文件,可参照defaultsetting.json修改
DISKStores节点,支持多个,可使用docker启动命令映射Rclone挂载的磁盘
"DISKStores": [
{
"diskfloder": "/yopngs",//本地目录,docker请做映射
"webfloder": "/v1",//url目录,如https://yopngs.com/v1/2022/01/01/xxxxx.png
"name": "yopngs",//主界面下拉显示名称,随意填写
"type": "yopngs",//内部类型,随意填写
"index": 0,//主界面下拉排序,越小越优先
"active": true//是否激活
},
COSStores节点,支持多个
"COSStores": [
{
"region": "ap-shanghai",
"bucket": "xx-xx",
"SECRET_ID": "xx",
"SECRET_KEY": "xx",
"Domain": "https://xx.com",
"name": "COS",
"type": "COS",
"index": 1,
"active": false
}
],
OSSStores节点,支持多个
"OSSStores": [
{
"AccessKeyId": "ap-shanghai",
"AccessKeySecret": "xx-xx",
"Endpoint": "xx",
"Domain": "https://xx.com",
"name": "OSS",
"type": "OSS",
"index": "2",
"active": false
}
],
"GLOBAL": {
"SIZELIMIT": 30,//图片大小
"EXTLIMIT": ".PNG.GIF.JPG.JPEG.BMP",//类型限制
"NSFW": true,//鉴黄开关
"COMPRESS": false,//未实现,请勿开启
"COUNT": 0,
"STARTDATE": "2020.01.01"
},