# 获取站点设置

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/public/settings:
    get:
      summary: 获取站点设置
      deprecated: false
      description: ''
      tags:
        - public
        - public
        - alist Copy/public
      parameters: []
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    title: 状态码
                  message:
                    type: string
                    title: 信息
                  data:
                    type: object
                    properties:
                      allow_indexed:
                        type: string
                        title: 允许索引
                      allow_mounted:
                        type: string
                        title: 允许挂载
                      announcement:
                        type: string
                        title: 公告
                      audio_autoplay:
                        type: string
                        title: 自动播放音频
                      audio_cover:
                        type: string
                        title: 音频封面
                      auto_update_index:
                        type: string
                        title: 自动更新索引
                      default_page_size:
                        type: string
                        title: 默认分页数
                      external_previews:
                        type: string
                        title: 外部预览
                      favicon:
                        type: string
                        title: 网站图标
                      filename_char_mapping:
                        type: string
                        title: ''
                      forward_direct_link_params:
                        type: string
                        title: ''
                      hide_files:
                        type: string
                        title: 隐藏文件
                      home_container:
                        type: string
                        title: 主页容器
                      home_icon:
                        type: string
                        title: 主页图标
                      iframe_previews:
                        type: string
                        title: iframe预览设置
                      logo:
                        type: string
                        title: logo
                      main_color:
                        type: string
                        title: 主题颜色
                      ocr_api:
                        type: string
                        title: pcr接口
                      package_download:
                        type: string
                        title: 打包下载
                      pagination_type:
                        type: string
                        title: ''
                      robots_txt:
                        type: string
                        title: robots文件
                      search_index:
                        type: string
                        title: ''
                      settings_layout:
                        type: string
                        title: ''
                      site_title:
                        type: string
                        title: 站点标题
                      sso_login_enabled:
                        type: string
                        title: 启用sso登录
                      sso_login_platform:
                        type: string
                        title: sso登录平台
                      version:
                        type: string
                        title: 版本
                      video_autoplay:
                        type: string
                        title: 视频自动播放
                    required:
                      - allow_indexed
                      - allow_mounted
                      - announcement
                      - audio_autoplay
                      - audio_cover
                      - auto_update_index
                      - default_page_size
                      - external_previews
                      - favicon
                      - filename_char_mapping
                      - forward_direct_link_params
                      - hide_files
                      - home_container
                      - home_icon
                      - iframe_previews
                      - logo
                      - main_color
                      - ocr_api
                      - package_download
                      - pagination_type
                      - robots_txt
                      - search_index
                      - settings_layout
                      - site_title
                      - sso_login_enabled
                      - sso_login_platform
                      - version
                      - video_autoplay
                    title: 数据
                    x-apifox-orders:
                      - allow_indexed
                      - allow_mounted
                      - announcement
                      - audio_autoplay
                      - audio_cover
                      - auto_update_index
                      - default_page_size
                      - external_previews
                      - favicon
                      - filename_char_mapping
                      - forward_direct_link_params
                      - hide_files
                      - home_container
                      - home_icon
                      - iframe_previews
                      - logo
                      - main_color
                      - ocr_api
                      - package_download
                      - pagination_type
                      - robots_txt
                      - search_index
                      - settings_layout
                      - site_title
                      - sso_login_enabled
                      - sso_login_platform
                      - version
                      - video_autoplay
                required:
                  - code
                  - message
                  - data
                x-apifox-orders:
                  - code
                  - message
                  - data
              example:
                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: *
                    Allow: /
                  search_index: none
                  settings_layout: responsive
                  site_title: AList
                  sso_login_enabled: 'false'
                  sso_login_platform: ''
                  version: v3.25.1
                  video_autoplay: 'true'
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: public
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/6849786/apis/api-327955430-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```
