# Operator drop-ins for the Ergo stack's Caddy site block. # # Every conf.d/*.caddy file is imported INSIDE the {$ERGO_DOMAIN} site block, after # the /webirc websocket route and before the text landing page. deploy.sh installs # this readme once and never touches conf.d/ again. Apply with: # # docker compose restart caddy (or: ergoctl caddy-restart) # # Example -- serve the Gamja web client (https://codeberg.org/emersion/gamja) from # ./caddy/www/gamja (unpack a release tarball there and write a config.json with # {"server": {"url": "/webirc", "autojoin": "#lobby"}}): # # handle { # root * /www/gamja # file_server # } # # ...and add `- ./caddy/www:/www:ro` to the caddy service volumes in # docker-compose.yml. Gamja's Origin (https://{$ERGO_DOMAIN}) already matches # server.websockets.allowed-origins in ircd.yaml.