Create a .vyasa file in your blog directory or current directory:
Copied
# Blog title (default: derives from root folder name via slug_to_title)
title = "My Awesome Blog"
# Root folder containing markdown files (default: current directory)
root = "."
# Server host (default: 127.0.0.1)
# Use "0.0.0.0" to make the server accessible from network
host = "127.0.0.1"
# Server port (default: 5001)
port = 5001
# Optional authentication credentials (enables Beforeware middleware)
username = "admin"
password = "hunter2"
# Optional: require auth for all routes (default: true if any auth provider is configured)
auth_required = true
# Optional Google OAuth configuration
[google_oauth]
client_id = "your-google-client-id"
client_secret = "your-google-client-secret"
allowed_domains = ["example.com"] # optional
allowed_emails = ["alice@example.com"] # optional
All settings in the .vyasa file are optional. The configuration is managed by the Config class in vyasa/config.py.