Skip to content

Configuration

PixelFS allows you to modify certain configurations, and all configuration details are stored in the $HOME/.pixelfs/config.toml file.

TIP

If you are running PixelFS for the first time, a config.toml file will be automatically created.

Configuration Parameters

Parameter NameTypeDefault ValueDescription
endpointstringhttps://www.pixelfs.ioServer address
tokenstring-User TOKEN information
pwdstring-Path information used with pixelfs cd
debugboolfalseEnable debug logs
daemon.listenstring0.0.0.0:15233Address and port for the daemon service
ffmpeg.cache.expireint86400ffmpeg cache expiration time (seconds)
ffmpeg.cache.pathstring$HOME/.pixelfs/cache/ffmpegffmpeg cache path
webdav.listenstring0.0.0.0:5233Address and port for the webdav service
webdav.cache.expireint86400webdav cache expiration time (seconds)
webdav.cache.pathstring$HOME/.pixelfs/cache/webdavwebdav cache path
webdav.cors.credentialsbool-Support for CORS credentials
webdav.cors.allow_originstring[]['*']Allowed origins for CORS requests
webdav.cors.allow_headersstring[]['*']Allowed headers for CORS requests
webdav.cors.allow_methodsstring[]['*']Allowed methods for CORS requests
webdav.cors.expose_headersstring[]-Response headers accessible by clients
webdav.cors.max_ageint-Maximum cache time for preflight requests (seconds)
webdav.users.usernamestring-Username for the webdav service
webdav.users.passwordstring-Password for the webdav service
webdav.users.permissionsstring-webdav user permissions, e.g., CRUD

Configuration Example

toml
endpoint = 'https://www.pixelfs.io'
pwd = '/'
token = 'auth-token'

[daemon]
listen = '0.0.0.0:15233'

[ffmpeg]
[ffmpeg.cache]
expire = 86400
path = '$HOME/.pixelfs/cache/ffmpeg'

[webdav]
listen = '0.0.0.0:5233'

[webdav.cache]
expire = 86400
path = '$HOME/.pixelfs/cache/webdav'

[webdav.cors]
allow_headers = ['*']
allow_methods = ['*']
allow_origin = ['*']

[[webdav.users]]
username = 'admin'
password = '123456'
permissions = 'none'

[[webdav.users.rules]]
path = '/0x29e3abdb587207dc4ac9c708670eefde717ef307'
permissions = 'CRUD'

Released under the GPL-3.0 License.