Server configuration
This documentation provides detailed information about each configuration option available for the Ayon server.
Configuration parameters can be set through environment variables, prefixed with AYON_
.
HTTP Server Settings
HTTP Listen Address
- Environment Variable:
AYON_HTTP_LISTEN_ADDRESS
- Default:
0.0.0.0
- Description: An address the API server listens on.
- Environment Variable:
HTTP Listen Port
- Environment Variable:
AYON_HTTP_LISTEN_PORT
- Default:
5000
- Description: A port the API server listens on.
- Environment Variable:
Directory Paths
API Modules Directory
- Environment Variable:
AYON_API_MODULES_DIR
- Default:
api
- Description: Path to the directory containing the API modules.
- Environment Variable:
Addons Directory
- Environment Variable:
AYON_ADDONS_DIR
- Default:
/addons
- Description: Absolute path to the directory containing the addons.
- Environment Variable:
Frontend Directory
- Environment Variable:
AYON_FRONTEND_DIR
- Default:
/frontend
- Description: Path to the directory containing the frontend files.
- Environment Variable:
Authentication Settings
Authentication Password Pepper
- Environment Variable:
AYON_AUTH_PASS_PEPPER
- Default:
supersecretpasswordpepper
- Description: A secret string used to salt the password hash.
- Environment Variable:
Minimum Password Length
- Environment Variable:
AYON_AUTH_PASS_MIN_LENGTH
- Default:
8
- Description: Minimum password length.
- Environment Variable:
Password Complexity Requirement
- Environment Variable:
AYON_AUTH_PASS_COMPLEX
- Default:
True
- Description: Enforce using a complex password.
- Environment Variable:
Database and Session Management
Redis URL
- Environment Variable:
AYON_REDIS_URL
- Default:
redis://redis/
- Description: Connection string for Redis.
- Example:
redis://user:password123@redis.example.com:6379
- Environment Variable:
Redis Channel
- Environment Variable:
AYON_REDIS_CHANNEL
- Default:
pype:c
- Description: Redis channel name for system messages.
- Environment Variable:
Postgres URL
- Environment Variable:
AYON_POSTGRES_URL
- Default:
postgres://ayon:ayon@postgres/ayon
- Description: Connection string for Postgres.
- Example:
postgres://user:password123@postgres.example.com:5432/ayon
- Environment Variable:
Session TTL
- Environment Variable:
AYON_SESSION_TTL
- Default:
86400
(24 hours) - Description: Session lifetime in seconds.
- Environment Variable:
Security and Logging
Max Failed Login Attempts
- Environment Variable:
AYON_MAX_FAILED_LOGIN_ATTEMPTS
- Default:
10
- Description: Maximum number of failed login attempts.
- Environment Variable:
Failed Login Ban Time
- Environment Variable:
AYON_FAILED_LOGIN_BAN_TIME
- Default:
600
- Description: Interval in seconds to ban IP addresses with too many failed login attempts.
- Environment Variable:
Message of the Day (MOTD)
- Environment Variable:
AYON_MOTD
- Default:
None
- Description: Message of the day.
- Example:
Welcome to Ayon!
- Environment Variable:
MOTD Path
- Environment Variable:
AYON_MOTD_PATH
- Default:
/storage/motd.md
- Description: Path to the MOTD file.
- Environment Variable: