56 lines
1.9 KiB
TOML
56 lines
1.9 KiB
TOML
[app]
|
|
name = "My App"
|
|
description = "Developed with the amazing PageTop framework."
|
|
# Default theme.
|
|
theme = "Default"
|
|
# Default language (localization).
|
|
language = "en-US"
|
|
# Default text direction: "ltr", "rtl", or "auto".
|
|
direction = "ltr"
|
|
# Startup banner: "Off", "Slant", "Small", "Speed", or "Starwars".
|
|
startup_banner = "Slant"
|
|
|
|
[database]
|
|
# Connect to a database (optional).
|
|
# Database type (mysql, postgres, or sqlite).
|
|
db_type = ""
|
|
# Database name (for mysql/postgres) or reference (for sqlite).
|
|
db_name = ""
|
|
# User and password (for mysql/postgres).
|
|
db_user = ""
|
|
db_pass = ""
|
|
# Database server (for mysql/postgres).
|
|
db_host = "localhost"
|
|
# Port, usually 3306 (for mysql) or 5432 (for postgres).
|
|
db_port = 0
|
|
# Maximum number of enabled connections.
|
|
max_pool_size = 5
|
|
|
|
[dev]
|
|
# Static files required by the app are integrated by default into the executable
|
|
# binary. However, during development, it can be useful to serve these files
|
|
# from their own directory to avoid recompiling every time they are modified. In
|
|
# this case, just indicate the full path to the project's root directory.
|
|
pagetop_project_dir = ""
|
|
|
|
[log]
|
|
# Execution trace: "Error", "Warn", "Info", "Debug", or "Trace".
|
|
# For example: "Error,actix_server::builder=Info,tracing_actix_web=Debug".
|
|
tracing = "Info"
|
|
# In terminal ("Stdout") or files "Daily", "Hourly", "Minutely", or "Endless".
|
|
rolling = "Stdout"
|
|
# Directory for trace files (if rolling != "Stdout").
|
|
path = "log"
|
|
# Prefix for trace files (if rolling != "Stdout").
|
|
prefix = "tracing.log"
|
|
# Traces format: "Full", "Compact", "Pretty", or "Json".
|
|
format = "Full"
|
|
|
|
[server]
|
|
# Web server config.
|
|
bind_address = "localhost"
|
|
bind_port = 8088
|
|
# Session cookie duration (in seconds), i.e., the time from when the session is
|
|
# created until the cookie expires. A value of 0 indicates "until the browser is
|
|
# closed". By default, it is one week.
|
|
session_lifetime = 604800
|