获取站点设置
GET
/api/public/settings最后修改时间: 1 年前
责任人: 未设置
请求参数
无
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
状态码
message
string
信息
data
object
数据
allow_indexed
string
允许索引
allow_mounted
string
允许挂载
announcement
string
公告
audio_autoplay
string
自动播放音频
audio_cover
string
音频封面
auto_update_index
string
自动更新索引
default_page_size
string
默认分页数
external_previews
string
外部预览
favicon
string
网站图标
filename_char_mapping
string
必需
forward_direct_link_params
string
必需
hide_files
string
隐藏文件
home_container
string
主页容器
home_icon
string
主页图标
iframe_previews
string
iframe预览设置
logo
string
logo
main_color
string
主题颜色
ocr_api
string
pcr接口
package_download
string
打包下载
pagination_type
string
必需
robots_txt
string
robots文件
search_index
string
必需
settings_layout
string
必需
site_title
string
站点标题
sso_login_enabled
string
启用sso登录
sso_login_platform
string
sso登录平台
version
string
版本
video_autoplay
string
视频自动播放
示例
{
"code": 200,
"message": "success",
"data": {
"allow_indexed": "false",
"allow_mounted": "false",
"announcement": "",
"audio_autoplay": "true",
"audio_cover": "https://jsd.nn.ci/gh/alist-org/logo@main/logo.svg",
"auto_update_index": "false",
"default_page_size": "30",
"external_previews": "{}",
"favicon": "https://cdn.jsdelivr.net/gh/alist-org/logo@main/logo.svg",
"filename_char_mapping": "{\"/\": \"|\"}",
"forward_direct_link_params": "false",
"hide_files": "/\\/README.md/i",
"home_container": "hope_container",
"home_icon": "🏠",
"iframe_previews": "{\n\t\"doc,docx,xls,xlsx,ppt,pptx\": {\n\t\t\"Microsoft\":\"https://view.officeapps.live.com/op/view.aspx?src=$e_url\",\n\t\t\"Google\":\"https://docs.google.com/gview?url=$e_url&embedded=true\"\n\t},\n\t\"pdf\": {\n\t\t\"PDF.js\":\"https://alist-org.github.io/pdf.js/web/viewer.html?file=$e_url\"\n\t},\n\t\"epub\": {\n\t\t\"EPUB.js\":\"https://alist-org.github.io/static/epub.js/viewer.html?url=$e_url\"\n\t}\n}",
"logo": "https://cdn.jsdelivr.net/gh/alist-org/logo@main/logo.svg",
"main_color": "#1890ff",
"ocr_api": "https://api.nn.ci/ocr/file/json",
"package_download": "true",
"pagination_type": "all",
"robots_txt": "User-agent: *\nAllow: /",
"search_index": "none",
"settings_layout": "responsive",
"site_title": "AList",
"sso_login_enabled": "false",
"sso_login_platform": "",
"version": "v3.25.1",
"video_autoplay": "true"
}
}
最后修改时间: 1 年前