rsw://
Publishing
Your domain. Your key. An ordinary HTTPS static server.
Prepare the files
rsw pack --cover source/cover.png --key private/identity.json --out journal.rsw.png source
rsw publish --domain example.org --key private/identity.json --out public journal.rsw.png
rsw index verify --domain example.org publicThe publisher validates and copies each cartridge to /rsw/H_PNG.rsw.png, then writes and signs /.well-known/rsw.json. It never deploys. Upload objects before the index and keep private keys outside public/.
Nginx
location ^~ /.well-known/rsw.json {
default_type application/json;
add_header Cache-Control no-cache;
}
location ^~ /rsw/ {
default_type image/png;
add_header X-Content-Type-Options nosniff;
add_header Cache-Control "public, immutable";
}Caddy
example.org {
header /.well-known/rsw.json Content-Type application/json
header /.well-known/rsw.json Cache-Control no-cache
header /rsw/* Content-Type image/png
header /rsw/* X-Content-Type-Options nosniff
header /rsw/* Cache-Control "public, immutable"
root * /srv/example.org/public
file_server
}Host the static web tools
The web-tools distribution needs no backend, database, Go, or Node.js. Serve .wasm as application/wasm and keep the relative directory structure. Tool pages use 'wasm-unsafe-eval' for the trusted Go runtime, not for cartridges; do not enable unsafe-eval. The iframe content has its own stricter policy.
# Nginx: WASM and security headers
location ^~ /assets/wasm/ {
default_type application/wasm;
add_header X-Content-Type-Options nosniff always;
}
location ~ ^/(create|inspect|validate|read|playground)/ {
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; connect-src 'self' https:; worker-src 'self'; object-src 'none'; base-uri 'none'; frame-src 'self'; frame-ancestors 'none'" always;
add_header Referrer-Policy no-referrer always;
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
}# Caddy equivalents
handle /assets/wasm/* {
header Content-Type application/wasm
header X-Content-Type-Options nosniff
file_server
}
header Referrer-Policy no-referrer
header Permissions-Policy "camera=(), microphone=(), geolocation=()"
# Apply the tool CSP shown above only to tool paths.Do not weaken the CSP globally. The home and documentary pages need no WASM or JavaScript. See STATIC-DEPLOYMENT.md in the source distribution for Apache examples and complete policies.
Preserve the bytes
Use HTTPS on port 443 with a valid certificate. Disable image optimization, PNG recompression, gzip, and automatic conversion for these paths. RSW-0005 revision 0.01 does not follow redirects. Compare downloaded bytes with the original and verify signatures independently of TLS.
Historical objects can remain by hash when a newer index is published. An index sequence does not authorize a cartridge version downgrade.