-
-
Notifications
You must be signed in to change notification settings - Fork 10
Config_en
SeNS edited this page Sep 23, 2025
·
2 revisions
The TinyOPDS configuration file is in XML format and contains all server settings. The file is automatically created on first program launch and can be edited manually or through the graphical interface.
File name: TinyOPDS.config
Location: In the program folder
Format: XML with UTF-8 encoding
Important: When editing the file manually, ensure TinyOPDS is not running, otherwise changes will be overwritten when the program closes.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<userSettings>
<Portable>
<TinyOPDS.Properties.Settings>
<!-- Configuration parameters -->
</TinyOPDS.Properties.Settings>
</Portable>
</userSettings>
</configuration>- Type: Integer
-
Default:
8080 - Description: Port on which the HTTP server operates
-
Example:
8080,80,9090
- Type: Integer
-
Default:
0 -
Description: Network interface index for listening
-
0- first found network interface -
1, 2, 3...- specific network interface by order
-
- Note: Used when system has multiple network cards
- Type: Boolean
-
Default:
False - Description: Use UPnP for automatic router configuration
-
Values:
True/False
- Type: Boolean
-
Default:
False - Description: Automatically open port in NAT router
-
Values:
True/False
- Type: Boolean
-
Default:
False - Description: Use absolute URIs instead of relative in OPDS catalog
-
Values:
True/False - Note: Enable when working through proxy or if clients incorrectly handle relative links
- Type: String
- Default: Empty
- Description: Path to books folder
-
Examples:
- Windows:
C:\Books\Library - Linux/Mac:
/home/user/books
- Windows:
- Type: Boolean
-
Default:
False - Description: Automatically monitor library changes
-
Values:
True/False - Note: When enabled, automatically scans new/changed files
- Type: String
- Default: Empty
- Description: Path to folder with additional files (styles, scripts)
- Note: Leave empty to use built-in files
- Type: String
-
Default:
TinyOPDS - Description: Server name displayed in OPDS clients
-
Example:
Home Library,My Books
- Type: String
-
Default:
opds - Description: Prefix for OPDS catalog in URL
-
Example: With value
opds, catalog is accessible athttp://server:8080/opds
- Type: String
-
Default:
lib - Description: Prefix for web interface in URL
-
Example: With value
lib, web interface is accessible athttp://server:8080/lib
- Type: Integer
-
Default:
200 - Description: Number of items per web interface page
- Recommendations: 50-500 items
- Type: Integer
-
Default:
100 - Description: Number of items per OPDS catalog page
- Recommendations: 20-200 items (less for mobile devices)
- Type: Integer
-
Default:
100 - Description: Batch size when processing books during scanning
- Recommendations: 50-500 (larger = faster, but uses more memory)
- Type: Integer
-
Default:
2 - Description: Period in weeks for displaying "new" books
-
Example:
2- books from last 2 weeks are considered new
- Type: String
- Default: All sections enabled
- Description: OPDS catalog sections visibility configuration
-
Format:
section:state;section:state;... -
States:
-
1- section enabled -
0- section disabled
-
Available sections:
-
newdate- New books by date -
newtitle- New books by title -
authorsindex- Authors index -
author-details- Author details -
author-series- Author's books in series -
author-no-series- Author's books outside series -
author-alphabetic- Authors alphabetically -
author-by-date- Authors by date added -
sequencesindex- Book series index -
genres- Genres -
downloads- Downloads/Popular
Example:
<OPDSStructure>newdate:1;newtitle:0;authorsindex:1;genres:1</OPDSStructure>Enabled: new by date, authors index, genres. Disabled: new by title.
- Type: String
-
Default:
en - Description: Interface language
-
Values:
en(English),ru(Russian),uk(Ukrainian), etc.
- Type: Integer
-
Default:
0 - Description: Sort order for mixed alphabet
-
Values:
-
0- Latin first -
1- Cyrillic first
-
- Type: Boolean
-
Default:
False - Description: Filter books by interface language
-
Values:
True/False -
Note: When
True, shows only books in interface language
- Type: Boolean
-
Default:
True - Description: Use author aliases
-
Values:
True/False
- Type: Boolean
-
Default:
False - Description: Use HTTP authorization (Basic Auth)
-
Values:
True/False
- Type: String
- Default: Empty
- Description: Credentials for HTTP authorization
-
Format: Base64 of
username:passwordor program's special format - Note: Configure through GUI for proper encryption
- Type: Boolean
-
Default:
False - Description: Enable client blocking after failed attempts
-
Values:
True/False
- Type: Integer
-
Default:
5 - Description: Number of failed attempts before blocking client
-
Note: Works only when
BanClients=True
- Type: Boolean
-
Default:
False - Description: Remember authorized clients
-
Values:
True/False
- Type: Boolean
-
Default:
False - Description: Start program minimized to tray
-
Values:
True/False
- Type: Boolean
-
Default:
False - Description: Minimize to tray when closing window
-
Values:
True/False
- Type: Boolean
-
Default:
False - Description: Start with Windows
-
Values:
True/False - Note: Windows only
- Type: Boolean
-
Default:
False - Description: Allow only one program instance
-
Values:
True/False
- Type: Boolean
-
Default:
True - Description: Cache book covers in RAM
-
Values:
True/False
- Type: Integer
-
Default:
128 - Description: Maximum image cache size in megabytes
- Recommendations: 64-512 MB depending on available memory
- Type: Integer
-
Default:
0 - Description: Log detail level
-
Values:
-
0- Information (Info) -
1- Warnings (Warning) -
2- Errors (Error) -
3- Authentication
-
- Type: Boolean
-
Default:
True - Description: Save logs to disk
-
Values:
True/False -
Log file:
TinyOPDS.login program folder
- Type: Integer
-
Default:
1 - Description: Program update check frequency
-
Values:
-
0- Never -
1- Once a week -
2- Once a month
-
- Type: Date/time
-
Format:
MM/dd/yyyy HH:mm:ss - Description: Date of last update check
-
Example:
09/22/2025 23:55:38 - Note: Updates automatically
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<userSettings>
<Portable>
<TinyOPDS.Properties.Settings>
<LibraryPath>C:\Books</LibraryPath>
<ServerPort>8080</ServerPort>
</TinyOPDS.Properties.Settings>
</Portable>
</userSettings>
</configuration><?xml version="1.0" encoding="utf-8"?>
<configuration>
<userSettings>
<Portable>
<TinyOPDS.Properties.Settings>
<LibraryPath>/home/user/books</LibraryPath>
<ServerPort>8080</ServerPort>
<UseHTTPAuth>True</UseHTTPAuth>
<Credentials><!-- Configure through GUI --></Credentials>
<BanClients>True</BanClients>
<WrongAttemptsCount>3</WrongAttemptsCount>
</TinyOPDS.Properties.Settings>
</Portable>
</userSettings>
</configuration><?xml version="1.0" encoding="utf-8"?>
<configuration>
<userSettings>
<Portable>
<TinyOPDS.Properties.Settings>
<LibraryPath>/mnt/nas/books</LibraryPath>
<ServerPort>80</ServerPort>
<BatchSize>500</BatchSize>
<ItemsPerWebPage>500</ItemsPerWebPage>
<ItemsPerOPDSPage>50</ItemsPerOPDSPage>
<CacheImagesInMemory>True</CacheImagesInMemory>
<MaxRAMImageCacheSizeMB>512</MaxRAMImageCacheSizeMB>
<WatchLibrary>True</WatchLibrary>
</TinyOPDS.Properties.Settings>
</Portable>
</userSettings>
</configuration>- Leave most parameters at default
- Enable
CloseToTrayandStartMinimizedfor background operation - Use
WatchLibrary=Truefor automatic updates
- Always enable
UseHTTPAuth=True - Configure
BanClients=Truewith reasonableWrongAttemptsCount - Use non-standard port instead of 8080
- Reduce
ItemsPerOPDSPagefor mobile clients
- Increase
BatchSizeto 500-1000 - Increase
MaxRAMImageCacheSizeMBif memory available - Disable
WatchLibraryand scan on schedule - Increase
ItemsPerWebPagefor easier navigation
- Configuration file is compatible between TinyOPDS versions
- GUI and CLI versions use the same configuration file
- When updating the program, new parameters are added automatically with default values
- Configuration backup is recommended before updating