This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""A simple wrapper for prefect server, with apikey and basic auth check. | |
usage: | |
```bash | |
# Allow prefect cli to access the server with same PREFECT_API_KEY. | |
PREFECT_API_KEY=XX | |
# base64 encoded `username:password`. Allow users to access the server with user:password. | |
PREFECT_BASIC_AUTH=XX | |
# start server | |
uvicorn --host $PREFECT_SERVER_API_HOST --port $PREFECT_SERVER_API_PORT --factory server:create_auth_app |