risotto/doc/dataset_example/infrastructure.md
2022-12-21 16:14:27 +01:00

1.2 KiB

Examples

Caddy as HTTPS server

The servers.yml:

  • we create only the zone "external"

  • we create a module "caddy"

  • we define an host "host.example.net":

    • servers are containerized with machined, so service application is "host-systemd-machined"
    • the provide application service is "provider-systemd-machined"
  • we define a server "caddy"

Caddy behind a Nginx reverse proxy

The servers.yml:

  • we create the zone "external" and a zone "revprox" between "revprox" and "caddy" servers

  • we create three module:

    • "revprox": the reverse proxy (with "letsencrypt" application service if needed)
    • "nsd": to manage local DNS name
    • "caddy"
  • we define an host "host.example.net":

    • servers are containerized with machined, so service application is "host-systemd-machined"
    • the provide application service is "provider-systemd-machined"
  • we define servers:

    • revprox in zones "external" and "revprox"
    • nsd in zone "revprox"
    • caddy in zone "revprox"

You must add a index.html file in "/var/lib/risotto/srv/caddy.in.example.net/caddy/".