A lightweight Caddy reverse proxy with HTTP Basic Authentication for Railway.
| Variable | Required | Description | Example |
|---|---|---|---|
| ORIGIN | ✅ | Upstream URL to proxy to | https://myapp.railway.app |
| BASIC_AUTH | ❌ | Username:password format | admin:secret |
| PORT | ❌ | Port to listen on (defaults to 80) | 8080 |
- Create a new Railway project
- Set environment variables:
ORIGIN: Your upstream service URLBASIC_AUTH: Username and password (optional)
- Deploy!
502 Bad Gateway:
- Verify
ORIGINURL is accessible - Check upstream service is running
Check logs:
docker logs <container-id>Inspired by railway-nginx-password-auth.
MIT License