Skip to main content

Configuration file

config.json

address

Listening address

port

Listening port

assets

The static resource location used. This is dynamic and changeable. Existing static resources are hosted on both npm and GitHub, and their locations are:

So you can use any npm or github cdn as the path. By default, Ele.me's unpkg cdn (Alibaba cloud cdn) is used by default: https://npm.elemecdn.com/[email protected]$version/dist/ , $version will be automatically replaced by the front-end in the program release version. Here are some other available assets:

npm

GitHub

local

  • local: /

customize

Two methods:

  • Reverse jsdelivr, and then replace the host in jsdelivr's npm or github's cdn with your own
  • Download the compiled file at https://github.com/alist-org/alist-web/releases and put it in your space, and then fill in the link to the location where you store the assets (to the dist/ level)

database

Database related settings

type

Database type, optional sqlite3, mysql, postgres

user

database username

password

Database password

host

Database address

port

Database port

name

Name database

table_prefix

Database table prefix (use one database for multiple applications)

db_file

Database file, for sqlite3

ssl_mode

scheme

protocol

https

Whether to open https

cert_file

Certificate file

key_file

Key file

cache

Cache related

expiration

Cache invalidation time (unit: minutes)

cleanup_interval

Clear the invalidation cache interval