#!/bin/sh set -e : "${PUBLIC_URL:?PUBLIC_URL environment variable is required (e.g. https://atbbs.app)}" # Strip trailing slash. PUBLIC_URL="${PUBLIC_URL%/}" SCOPE="atproto repo:xyz.atboards.site repo:xyz.atboards.board repo:xyz.atboards.news repo:xyz.atboards.thread repo:xyz.atboards.reply repo:xyz.atboards.ban repo:xyz.atboards.hide" # Runtime config read by the SPA at startup. cat > /usr/share/nginx/html/config.json < /usr/share/nginx/html/client-metadata.json <