Refactored to use config yaml

This commit is contained in:
Andrew Stout 2025-08-07 18:57:07 -05:00
parent 211afc9130
commit 155e431b2a
No known key found for this signature in database
GPG Key ID: B01268A581FC2448

View File

@ -48,21 +48,21 @@ msg_ok "Set up PostgreSQL"
msg_info "Creating Service"
mkdir -p /opt
cat <<EOF >/opt/${APPLICATION}.env
LITELLM_MASTER_KEY=sk-1234
DATABASE_URL=postgresql://$DB_USER:$DB_PASS@127.0.0.1:5432/$DB_NAME
STORE_MODEL_IN_DB=true
USE_PRISMA_MIGRATE=true
cat <<EOF >/opt/"${APPLICATION}".yaml
general_settings:
master_key: sk-1234
database_url: postgresql://$DB_USER:$DB_PASS@127.0.0.1:5432/$DB_NAME
store_model_in_db: true
use_prisma_migrate: true
EOF
cat <<EOF >/etc/systemd/system/${APPLICATION}.service
cat <<EOF >/etc/systemd/system/"${APPLICATION}".service
[Unit]
Description=LiteLLM
[Service]
Type=simple
EnvironmentFile=/opt/${APPLICATION}.env
ExecStart=litellm
ExecStart=litellm --config /opt/"${APPLICATION}".yaml
Restart=always
[Install]