Logins follow shelfmark: none, CWA accounts, or a reverse proxy header. CWA accounts are checked against the OPDS feed, with a lockout after repeated wrong passwords. An API key works in every mode, and changes need an X-Requested-With header or the key. URL_BASE serves the app under a path prefix.
8 lines
221 B
Python
8 lines
221 B
Python
"""Development server: python -m bindery. The container runs gunicorn instead."""
|
|
|
|
import os
|
|
|
|
from bindery.web import app
|
|
|
|
app.run(host="127.0.0.1", port=int(os.getenv("PORT", "8085")), threaded=True, use_reloader=False)
|