2023-09-09 21:59:43 +00:00
# Configuration Help
This document covers the available configuration options, their defaults, and how they affect the functionality of filebrowser.
## All possible configurations
Here is an expanded config file which includes all possible configurations:
```
server:
2023-10-11 01:03:33 +00:00
CreateUserDir: false
UserHomeBasePath: ""
2023-09-09 21:59:43 +00:00
indexingInterval: 5
numImageProcessors: 4
socket: ""
tlsKey: ""
tlsCert: ""
enableThumbnails: false
resizePreview: true
typeDetectionByHeader: true
2024-02-10 00:13:02 +00:00
port: 80
2023-09-09 21:59:43 +00:00
baseURL: "/"
address: ""
log: "stdout"
database: "/database/database.db"
root: "/srv"
auth:
2023-12-06 21:03:20 +00:00
adminUsername: admin
adminPassword: admin
2023-09-09 21:59:43 +00:00
recaptcha:
host: ""
key: ""
secret: ""
2023-12-20 20:44:25 +00:00
tokenExpirationTime: 2h
2023-09-09 21:59:43 +00:00
header: ""
method: json
command: ""
2023-10-11 01:03:33 +00:00
signup: false
2023-09-09 21:59:43 +00:00
shell: ""
frontend:
name: ""
disableExternal: false
disableUsedPercentage: true
files: ""
color: ""
userDefaults:
2023-10-09 22:24:48 +00:00
settingsAllowed: true
darkMode: false
2023-09-09 21:59:43 +00:00
scope: ""
2023-10-10 14:50:37 +00:00
locale: "en"
2023-09-09 21:59:43 +00:00
viewMode: ""
singleClick: true
sorting:
by: ""
asc: true
permissions:
admin: true
execute: true
create: true
rename: true
modify: true
delete: true
share: true
download: true
commands: []
hideDotfiles: false
dateFormat: false
```
Here are the defaults if nothing is set:
```
2023-10-10 14:50:37 +00:00
server:
enableThumbnails: true
enableExec: false
indexingInterval: 5
2024-02-10 00:13:02 +00:00
port: 80
2023-10-10 14:50:37 +00:00
numImageProcessors: 4
baseURL: ""
database: database.db
log: stdout
root: /srv
auth:
2023-12-06 21:03:20 +00:00
adminUsername: admin
adminPassword: admin
2023-10-10 14:50:37 +00:00
method: password
recaptcha:
host: ""
userDefaults:
settingsAllowed: true
darkMode: false
scope: ""
locale: "en"
scope: "."
lockPassword: false
hideDotfiles: true
permissions:
create: true
rename: true
modify: true
delete: true
share: true
download: true
2023-09-09 21:59:43 +00:00
```
## About each configuration
2023-09-09 23:58:47 +00:00
# Configuration Settings Documentation
## About each configuration
2023-09-09 21:59:43 +00:00
### Server configuration settings
2023-10-10 14:50:37 +00:00
- `indexingInterval` : This is the time in minutes the system waits before checking for filesystem changes. Default: `5`
2023-09-09 23:58:47 +00:00
2023-10-10 14:50:37 +00:00
- `numImageProcessors` : This is the number of image processors available. Default: `4`
2023-09-09 23:58:47 +00:00
- `socket` : This is the socket configuration.
- `tlsKey` : This is the TLS key configuration.
- `tlsCert` : This is the TLS certificate configuration.
2023-10-10 14:50:37 +00:00
- `enableThumbnails` : This boolean value determines whether thumbnails are enabled on ui. Default: `true`
2023-09-09 23:58:47 +00:00
2023-10-10 14:50:37 +00:00
- `resizePreview` : This boolean value determines whether preview resizing is enabled. Default: `false`
2023-09-09 23:58:47 +00:00
- `typeDetectionByHeader` : This boolean value determines whether type detection is based on headers.
2024-02-10 00:13:02 +00:00
- `port` : This is the port number on which the server is running. Default: `80`
2023-09-09 23:58:47 +00:00
2023-10-10 14:50:37 +00:00
- `baseURL` : This is the base URL for the server. Default: `""`
2023-09-09 23:58:47 +00:00
2023-10-10 14:50:37 +00:00
- `address` : This is the server address configuration. Default: `0.0.0.0`
2023-09-09 23:58:47 +00:00
2023-10-10 14:50:37 +00:00
- `log` : This specifies the log destination. Default: `stdout`
2023-09-09 23:58:47 +00:00
2023-10-10 14:50:37 +00:00
- `database` : This is the database file path + filename that will be created if it does not already exist. If it exists, it will use the existing file. Default `database.db`
2023-09-09 23:58:47 +00:00
2023-10-10 14:50:37 +00:00
- `root` : This is the root directory path. Default: `/srv`
2023-09-09 23:58:47 +00:00
2023-10-11 01:03:33 +00:00
- `CreateUserDir` : Boolean to create user directory on user creation. Default: `false`
- `UserHomeBasePath` : String to define user home directory base path. Default: `""`
2023-09-09 23:58:47 +00:00
### Auth configuration settings
- `recaptcha` :
- `host` : This is the host for reCAPTCHA.
- `key` : This is the reCAPTCHA key.
- `secret` : This is the reCAPTCHA secret.
- `header` : This is the authentication header.
- `method` : This is the authentication method used (e.g., "json"). Possible values:
2023-10-10 14:50:37 +00:00
- `password` - username and password
- `hook` - hook authentication
- `proxy` - proxy authentication
- `oath` - oath authentication
- `noauth` - no authentication/login required.
2023-09-09 23:58:47 +00:00
2023-10-10 14:50:37 +00:00
- `command` : Deprecated: This is the authentication command.
2023-09-09 23:58:47 +00:00
- `shell` : This is the shell configuration.
2023-10-10 14:50:37 +00:00
2023-10-11 01:03:33 +00:00
- `Signup` : This boolean value indicates whether user signup is enabled on the login page. NOTE: Be mindful of `userDefaults` settings if enabled. Default: `false`
- `AdminUsername` : This is the username of the admin user. Default: `admin`
- `AdminPassword` : This is the password of the admin user. Default: `admin`
2023-09-09 23:58:47 +00:00
### Frontend configuration settings
- `name` : This is the name of the frontend.
- `disableExternal` : This boolean value determines whether external access is disabled.
- `disableUsedPercentage` : This boolean value determines whether used percentage is disabled.
- `files` : This is the files configuration.
- `theme` : This is the theme configuration.
- `color` : This is the color configuration.
2023-10-10 14:50:37 +00:00
2023-09-09 23:58:47 +00:00
### UserDefaults configuration settings
2023-10-10 14:50:37 +00:00
- `darkMode` : Determines whether dark mode is enabled for the user (`true` or `false` )
2023-10-09 22:24:48 +00:00
2023-10-10 14:50:37 +00:00
- `settingsAllowed` : Determines whether settings page is enabled for the user (`true` or `false` )
2023-10-09 22:24:48 +00:00
2023-09-09 23:58:47 +00:00
- `scope` : This is a scope of the permissions, "." or "./" means all directories, "./downloads" would mean only the downloads folder.
2023-10-10 14:50:37 +00:00
- `locale` : String locale configuration. Default: `en`
2023-09-09 23:58:47 +00:00
2023-10-10 14:50:37 +00:00
- `viewMode` : This is the view mode configuration. Possible values: `normal` , `compact` , `list` , and `gallery` . default: `normal`
2023-09-09 23:58:47 +00:00
2023-10-10 14:50:37 +00:00
- `singleClick` : This boolean value determines whether single-click is enabled. (`true` or `false` )
2023-09-09 23:58:47 +00:00
- `sorting` :
- `by` : This is the sorting method used (e.g., "asc").
2023-10-10 14:50:37 +00:00
- `asc` : This boolean value determines the sorting order is ascending or descending. (`true` or `false` )
2023-09-09 23:58:47 +00:00
- `permissions` :
- `admin` : This boolean value determines whether admin permissions are granted.
- `execute` : This boolean value determines whether execute permissions are granted.
- `create` : This boolean value determines whether create permissions are granted.
- `rename` : This boolean value determines whether rename permissions are granted.
- `modify` : This boolean value determines whether modify permissions are granted.
- `delete` : This boolean value determines whether delete permissions are granted.
- `share` : This boolean value determines whether share permissions are granted.
- `download` : This boolean value determines whether download permissions are granted.
2023-10-10 14:50:37 +00:00
- `commands` : Deprecated: This is a list of commands.
2023-09-09 23:58:47 +00:00
2023-10-10 14:50:37 +00:00
- `hideDotfiles` : This boolean value determines whether dotfiles are hidden. (`true` or `false` )
2023-09-09 23:58:47 +00:00
2023-10-10 14:50:37 +00:00
- `dateFormat` : This boolean value determines whether date formatting is enabled. (`true` or `false` )