Serving static files

These settings used to control serving static files by backend.

pydantic model horizon.backend.settings.server.static_files.StaticFilesSettings

Static files serving settings.

Files are served at /static endpoint.

Examples

HORIZON__SERVER__STATIC_FILES__ENABLED=True
HORIZON__SERVER__STATIC_FILES__DIRECTORY=/app/horizon/backend/static
Fields:
field enabled: bool = True

Set to True to enable static file serving

field directory: Path = PosixPath('docs/_static')

Directory containing static files