---
title: "Deploy Caddy with file upload"
description: "Caddy-based HTTP file upload server with drag-and-drop web UI"
category: "Storage"
url: https://railway.com/deploy/caddy-with-file-upload
---

# Deploy Caddy with file upload

Caddy-based HTTP file upload server with drag-and-drop web UI

**[Deploy Caddy with file upload on Railway](https://railway.com/template/caddy-with-file-upload)**

- **Creator:** INAPP
- **Category:** Storage

## Template content

### caddy-upload-template

- **Source:** INAPP-Mobile/caddy-upload-template

## Documentation

# Deploy and Host Caddy with file upload on Railway

[INAPP-Mobile/caddy-upload-template](https://github.com/INAPP-Mobile/caddy-upload-template) is a lightweight deployment template for running the [Caddy web server](https://caddyserver.com) with browser-based file upload support. It combines static file hosting, upload handling, and automatic HTTPS into a simple deployable service suitable for quick file sharing, backups, and internal tools.

## About Hosting Caddy with file upload

Hosting Caddy with file upload on Railway provides an easy way to deploy a secure web-accessible file server without managing complex infrastructure. The template uses Caddy as the reverse proxy and static file server while exposing an upload endpoint that allows users to send files directly through a web interface or HTTP requests. Railway handles container deployment, networking, HTTPS, scaling, and environment management automatically. This setup is useful for lightweight personal cloud storage, temporary file sharing, media uploads, or internal team utilities. Since Caddy includes automatic TLS certificate provisioning, deployments can securely serve uploaded files over HTTPS with minimal configuration.

## Common Use Cases

- Internal team file sharing and upload portal
- Temporary public upload/dropbox service for clients
- Lightweight self-hosted static asset and media hosting

## Dependencies for Caddy with file upload Hosting

- Docker or containerized runtime environment
- Caddy web server with upload/file-server configuration

### Deployment Dependencies

- https://github.com/INAPP-Mobile/caddy-upload-template
- https://caddyserver.com/docs/
- https://railway.com/

### Implementation Details

Example `Caddyfile` configuration:

```caddyfile
:8080 {
    root * /data
    file_server browse

    route /upload/* {
        reverse_proxy localhost:3000
    }
}

## Why Deploy

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 with file upload 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

- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.
- [Redis](https://railway.com/deploy/redis-1) — Self Host Latest Redis with Railway
- [EasyImg](https://railway.com/deploy/easyimg) — Simple self-hostable Nuxt.js personal image hosting system.

Open this page in a browser: https://railway.com/deploy/caddy-with-file-upload
