Config
Data directory and configuration
config.toml
Seanime uses a config.toml
file to store its configuration.
# The current version of Seanime (Do not change)
version = ''
[cache]
# The directory where cached data is stored
dir = '$SEANIME_DATA_DIR/cache'
# The directory where transcode video segments are stored
transcodedir = '$SEANIME_DATA_DIR/cache/transcode'
[database]
# The name of the database
name = 'seanime'
[logs]
# The directory where logs are stored
dir = '$SEANIME_DATA_DIR/logs'
[manga]
# The directory where manga chapters are downloaded
downloaddir = '$SEANIME_DATA_DIR/manga'
[offline]
# The directory where offline assets are downloaded
assetdir = '$SEANIME_DATA_DIR/offline/assets'
# The directory where the offline database is stored
dir = '$SEANIME_DATA_DIR/offline'
[server]
# The host to bind the server to
host = '127.0.0.1'
# Whether the server should run in offline mode
offline = false
# The port to bind the server to
port = 43211
# Whether SEANIME_WORKING_DIR should be the binary path (true) or the system's working directory (false)
usebinarypath = true
[web]
# The directory where custom web assets like background images are stored
assetdir = '$SEANIME_DATA_DIR/assets'
Environment variables
Here are the environment variables that Seanime uses:
SEANIME_DATA_DIR
The path to the data directory. The data directory contains everything from your configuration to your database. It represents a single instance of Seanime.
The default location of this directory varies depending on your OS and environment variables. (%APPDATA%\Roaming\Seanime
on Windows, ~/Library/Application Support/Seanime
on macOS, etc.)
SEANIME_WORKING_DIR
If usebinarypath
is set to true
, this variable will be set to the directory where the executable is located, otherwise it will be set to the system's working directory.
Run multiple instances
Running multiple instances of Seanime is as simple as running the binary with a different data directory.
You can do this by setting the SEANIME_DATA_DIR
environment variable to the path you want using the --datadir
flag.
# Run a second instance
seanime.exe --datadir="C:\Users\nobody\Documents\SeanimeData"
# Run a second instance
./seanime --datadir="/Users/nobody/Documents/SeanimeData"
You can thus run multiple instances simultaneously by giving each instance a different port.