Configuration files
Ayase Quart requires two main configuration files:- config.toml - Main application configuration including app settings, database connections, media serving, search engines, and moderation
- boards.toml - Board definitions mapping board shortnames to full names
config.tpl.toml and boards.[archive].tpl.toml (e.g., boards.4chan.tpl.toml or boards.lainchan.tpl.toml).
Application settings
Core application configuration is defined in the[app] section.
Enable testing mode
Application secret key used for session management and security. Generate a secure value using:
Validate that boards defined in boards.toml have corresponding database tables
Enable automatic code reloading during development
Serve JSON API endpoints including catalog.json, thread.json, and index.json
The base URL for your application, including protocol and domain/IP. Everything before the paths and query strings.Examples:
http://127.0.0.1:9001(local development)https://192.168.1.100(local network)https://ayasequart.com(production)
Port number for the application to listen on
Path to SSL private key file (e.g.,
key.pem). Optional, comment out if not using SSL.Path to SSL certificate file (e.g.,
cert.pem). Optional, comment out if not using SSL.Number of trusted proxy hops for X-Forwarded-For header processing. Set to the number of reverse proxies in front of the application.
Enable rate limiting on endpoints. All rates are currently hard coded.
Control whether web crawlers can crawl your site via robots.txt
Custom endpoint path for the login page. Can be changed to increase security through obscurity.
Site settings
The[site] section controls site appearance and identity.
Display name for your archive site
Visual theme for the site interfaceAvailable themes:
tomorrowyotsubayotsuba_bfutababurichanphoton
Contact email address displayed on the site
Default username displayed for posts without a name
Custom HTML banner message displayed on the site. Set to empty string (
'') to disable, or leave as None for default promo banner.Archive settings
The[archive] section defines the source archive type and behavior.
Archive type/formatOptions:
yotsuba- 4chan formatvichan- Lainchan, Holotower format
Human-readable name of the source archiveExamples:
4chanLainchanHolotower
Base URL of the canonical source archive
Whether comment HTML is pre-escaped in the source data
false- For 4chan scraperstrue- For vichan APIs
URL path pattern for catalog pages after
/{board}. Default is /catalog.Example: /catalog.htmlURL path pattern for thread pages after
/{board}. Use {thread} as placeholder.Example: /res/{thread}.htmlURL fragment pattern for individual posts after thread_path. Use
{num} as placeholder.Example: #{num}Statistics
The[stats] section controls statistics collection and display.
Enable endpoints for viewing post statistics (posts per month per board)
Use Redis for statistics caching
Redis database number for statistics data
Redis connection
The[redis] section configures the Redis connection used for caching and statistics.
Redis server hostname or IP address
Redis server port
Maximum number of connections in the pool. Ensure your system’s max open files limit is high enough (check with
ulimit).Next steps
Database configuration
Configure MySQL, PostgreSQL, or SQLite connections
Board configuration
Set up board definitions and mappings
Media serving
Configure image and thumbnail serving
Search engines
Set up vanilla and indexed search