EnglishFrançais

Mosaic

Mosaic is Amalgame's web stack — and you can run it two ways. As a server: install the prebuilt mosaic binary, write a mosaic.toml, and mosaic serve — N sites, automatic HTTPS / ACME, middleware, and a reverse-proxy / load balancer, with no Amalgame code (nginx/Caddy style). Or as a library: the amalgame-web package plus the HTTP / TLS layer, when you want to write your own handlers.

import Amalgame.Web

WebApp.New()
    .Get("/", ctx => HttpResponse.New().Html("<h1>Hello Mosaic</h1>"))
    .ServeHttps(443, "/etc/ssl/cert.pem", "/etc/ssl/key.pem")