---
title: "Deploy caddy-password-auth"
description: "A lightweight Caddy reverse proxy with HTTP Basic Authentication."
category: "Authentication"
url: https://railway.com/deploy/caddy-password-auth
---

# Deploy caddy-password-auth

A lightweight Caddy reverse proxy with HTTP Basic Authentication.

**[Deploy caddy-password-auth on Railway](https://railway.com/template/caddy-password-auth)**

- **Creator:** Ilia Bukin's Projects
- **Category:** Authentication
- **Total deploys:** 4

## Template content

### caddy-password-auth

- **Source:** iliab1/caddy-password-auth

## Documentation

# Deploy and Host caddy-password-auth on Railway

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

## About Hosting caddy-password-auth

| 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  

## Common Use Cases

- Protecting Development/Staging Environments
- Adding Auth to Public APIs

## Dependencies for caddy-password-auth Hosting

None

### Deployment Dependencies

None

## Why Deploy caddy-password-auth on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying caddy-password-auth on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [Keycloak](https://railway.com/deploy/mSwigX) — Keycloak template with keywind theme + apple and discord providers
- [lua-protector](https://railway.com/deploy/lua-protector) — Test deployed my project first
- [bknd](https://railway.com/deploy/p4nTYL) — Feature-rich yet lightweight backend

Open this page in a browser: https://railway.com/deploy/caddy-password-auth
