konduktor/config.docs.yaml
2025-12-03 00:30:18 +03:00

40 lines
716 B
YAML

# PyServe configuration for serving documentation
# Usage: pyserve -c config.docs.yaml
http:
static_dir: ./docs
templates_dir: ./templates
server:
host: 0.0.0.0
port: 8000
backlog: 5
default_root: false
ssl:
enabled: false
logging:
level: INFO
console_output: true
extensions:
- type: routing
config:
regex_locations:
"=/":
root: "./docs"
index_file: "index.html"
"~*\\.(css)$":
root: "./docs"
cache_control: "public, max-age=3600"
"~*\\.html$":
root: "./docs"
cache_control: "no-cache"
"__default__":
root: "./docs"
index_file: "index.html"