Use Cases
- Fast production deploys with minimal ops
- Staging environments for LLM policy changes
- Small to mid-scale workloads with managed hosting
Prerequisites
- Railway account
- KoreShield repo or a Docker image in a registry
- Provider API keys available as Railway variables
Option A: Deploy from GitHub Repo
Option B: Deploy from a Docker Image
Configure Environment Variables
Set environment variables in Railway’s dashboard for secure configuration management.
Mount Config (Optional)
Railway supports volumes. If you mount a config file, make sure the path matches yourCONFIG_FILE value.
Health Check
Observability
- Enable
json_logs: truefor structured logging - Scrape
/metricsfrom an internal monitor or a private endpoint - Watch Railway logs for startup and provider errors
Security Notes
- Keep provider keys in Railway variables, not in code
- Use
KORESHIELD_API_KEYto protect access to the proxy - Restrict access with a private domain or gateway if needed
Troubleshooting
Next Steps
- Configure providers in /configuration/
- Add monitoring in ../monitoring/prometheus.mdx