-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
47 lines (39 loc) · 1009 Bytes
/
Copy pathconfig.example.yaml
File metadata and controls
47 lines (39 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Example configuration file for pAPI
# Copy this file to config.yaml and modify as needed
# Application settings
name: "pAPI Example"
version: "1.0.0"
debug: true
# Server configuration - using granian as default
server:
type: "granian" # Options: "granian" (default) or "uvicorn"
host: "0.0.0.0"
port: 8000
workers: 2
reload: true
log_level: "info"
# Apps configuration
apps:
# Directory where apps are located
apps_dir: "./extra_apps"
# List of enabled apps
enabled: [] # Example: ["hello_world", "weather"]
# Database configuration (optional)
# database:
# url: "sqlite:///./data/app.db"
# echo: false
# Redis configuration (optional)
# redis:
# url: "redis://localhost:6379"
# decode_responses: true
# API configuration
api:
title: "pAPI"
description: "A FastAPI-based API framework"
version: "1.0.0"
docs_url: "/docs"
redoc_url: "/redoc"
# Logging configuration
logging:
level: "INFO"
format: "%(asctime)s - %(name)s - %(levelname)s - %(message)s"