Skip to content

Latest commit

 

History

History
63 lines (37 loc) · 2.5 KB

File metadata and controls

63 lines (37 loc) · 2.5 KB

Caddy

Table of contents

What is Caddy

Caddy is an open-source web server and reverse proxy.

Caddy is configured via a Caddyfile.

See Caddy in this project.

Docs:

Caddyfile

A Caddyfile is Caddy's configuration file. It defines which port Caddy listens on and where to forward requests.

Docs:

Caddy in this project

Caddyfile in this project

In this project, the Caddyfile is at caddy/Caddyfile.

This configuration:

Caddy serves frontend files

Caddy serves static front-end files from /srv for all other paths. The try_files directive falls back to index.html for client-side routing.

Caddy forwards requests to backend

Caddy routes API endpoints (/items*, /learners*, /interactions*, /docs*, /openapi.json) to the app service.

<caddy-port>

The port number (without < and >) which Caddy listens on.

The port number is the value of CADDY_HOST_PORT in .env.docker.secret.

Example: 42000.