Skip to content

iliab1/caddy-password-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Railway Caddy Password Auth

Deploy on Railway

A lightweight Caddy reverse proxy with HTTP Basic Authentication for Railway.

Environment Variables

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

Quick Start

Railway Deployment

  1. Create a new Railway project
  2. Set environment variables:
    • ORIGIN: Your upstream service URL
    • BASIC_AUTH: Username and password (optional)
  3. Deploy!

Troubleshooting

502 Bad Gateway:

  • Verify ORIGIN URL is accessible
  • Check upstream service is running

Check logs:

docker logs <container-id>

Credits

Inspired by railway-nginx-password-auth.

License

MIT License

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published