diff options
Diffstat (limited to 'HOSTING.md')
| -rw-r--r-- | HOSTING.md | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/HOSTING.md b/HOSTING.md new file mode 100644 index 0000000..33a34c3 --- /dev/null +++ b/HOSTING.md @@ -0,0 +1,51 @@ +# Self-hosting Carbon & Signal + +This is a buildless static site. Extract the supplied ZIP to a directory served by Apache or nginx. All files and paths are relative and there is no application server, database, Node.js, npm, CDN, or build process. + +## Apache + +Copy the archive to the server and extract into a suitable document root or subdirectory, e.g.: + +```sh +sudo install -d -m 0755 /var/www/html/styleguide +sudo unzip packet-warriors-styleguide-v1.0.zip -d /var/www/html/styleguide +``` + +Browse to `https://your-domain.example/styleguide/`. A dedicated virtual host may instead set DocumentRoot to the extraction directory. Set permissions for web server read access. Prefer TLS and disable directory listing. Do not expose credentials or private application configuration in this directory. + +## nginx + +Serve the extracted directory as a normal static root or alias. For a dedicated vhost: + +```nginx +server { + listen 80; + server_name styleguide.example.org; + root /var/www/styleguide; + index index.html; + + location / { + try_files $uri $uri/ =404; + } +} +``` + +Set up HTTPS according to your existing hosting practices. Relative links work on a subpath. The MIME type for CSS/JS/JSON should remain appropriate. + +## Local preview + +Open index.html directly (the site uses embedded token data and local assets), or run: + +```sh +python3 -m http.server 8000 +``` + +Browse to http://localhost:8000/. Clipboard support can vary on file:// or non-HTTPS hosts. + +## Fonts and agent adoption + +This distribution does not bundle IBM Plex font binaries. Place licensed WOFF2 files in fonts/ using the names in css/pw-fonts.css (or adjust the paths). Add a link to css/pw-fonts.css in index.html and the gallery if you want to force local WOFF2 loading; otherwise installed IBM Plex and system fallbacks are used. Retain the original license for redistributed fonts. + +Copy AGENTS.md and CLAUDE.md to each repo root. If the repository already has agent instructions, **merge** the relevant design-system rules rather than replacing operational instructions. Put a link to your hosted styleguide in the agent files. Version and vendor css/pw-tokens.css and the relevant adapter into the repo, rather than requiring an external URL at runtime. Keep critical assets local for offline Firefly operations. Specify the canonical source version in each app README. + +The styleguide is public-facing reference material if you publish it on your server. It contains no production credentials and no live radio data. |
