moved core app config (name, version) out of settings and into app/app_settings.py added ability to brand SneakyScope to any name added caching of cert information from crt.sh (cache enable and lenght is configurable in settings.yaml) streamlined header/footer loading to be more correct
22 lines
486 B
Python
22 lines
486 B
Python
"""
|
|
app/wsgi.py
|
|
|
|
Gunicorn entrypoint for SneakyScope.
|
|
"""
|
|
|
|
from . import create_app
|
|
|
|
# Gunicorn will look for "app"
|
|
app = create_app()
|
|
|
|
from app.state import set_rules_engine
|
|
from app.logging_setup import get_app_logger
|
|
from app.rules.factory import build_rules_engine
|
|
|
|
# Preload path: build once, set into global state
|
|
_engine = build_rules_engine()
|
|
set_rules_engine(_engine)
|
|
|
|
logger = get_app_logger()
|
|
logger.info("[wsgi] engine id=%s total=%d", hex(id(_engine)), len(_engine.rules))
|