FerryDocs
ConceptsServices

Static sites

A static site is a folder of files that nginx serves behind the proxy.

Edit on GitHub
BrowserProxynginxport 80about.html404.html

A browser asks for /about. The proxy sends the request to nginx.

1 / 3

A is files that serves behind the . A build step before that is optional: npm run build, Hugo, MkDocs, Jekyll…

Ferry makes the : an nginx:alpine server that listens on port 80.

Create a static site

Terminal
ferry up my-site --type static --dir ./public

How nginx finds a page

For /about, nginx serves about.html or about/index.html.

For the exact rules, the build step and the publish directory, see Static sites in Builds.

On this page