Database
Both the proxy and the storage servers require a database to manage files, users, and shares. Two backends are supported for the database. No additional configuration is required; simply set the environment variable DATABASE_URL
as follows:
SQLite
-
Supported formats for
DATABASE_URL
are:- File paths (e.g.,
test.db
) - URIs (e.g.,
file://test.db
) - Special identifiers (e.g.,
:memory:
)
Example:
DATABASE_URL=mydatabase.db
- File paths (e.g.,
PostgreSQL
-
DATABASE_URL
must be a PostgreSQL connection string.Example:
DATABASE_URL="postgresql://<user>:<password>@localhost:5432/<database name>"
-
The user in the URL must be the owner of the database and have all privileges on it.