#!/bin/sh
set -eu

python -m alembic -c licensing_server/alembic.ini upgrade head

exec python -m uvicorn licensing_server.app.main:app \
    --host 0.0.0.0 \
    --port 8080 \
    --proxy-headers \
    --forwarded-allow-ips "${LICENSING_TRUSTED_PROXY_IPS:-127.0.0.1}"
