---
title: "Deploy railway-docker-nginx-basic-auth"
description: "Add basic auth to your web app."
category: "Authentication"
url: https://railway.com/deploy/bYH8Xt
---

# Deploy railway-docker-nginx-basic-auth

Add basic auth to your web app.

**[Deploy railway-docker-nginx-basic-auth on Railway](https://railway.com/template/bYH8Xt)**

- **Creator:** toyjack's Projects
- **Category:** Authentication
- **Total deploys:** 184

## Template content

### nginx-basic-auth

- **Source:** https://github.com/toyjack/railway-nginx-basic-auth
- **Public domain:** Yes

## Documentation

This is for web application running in railway.app which need a basic auth without modifing source code.

This template uses `nginx:alpine` in docker. You can modify your username and password by change enviroment variables.

Just leave `ENABLE_ALPINE_PRIVATE_NETWORKING` with value `true`.



## 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/bYH8Xt
