Files
LithosAnanke/demo/apache-demo.conf
rajamesandClaude Opus 5.5 475dac67ef demo: "Try it" is its own page on the .com, in the landing page's style (#117)
Captain Bob, 2026-11-06: "I want the try it as it's very own page and
use the landing page we designed earlier ... as a baseline."

The landing page is the .com's Main.WebHome. The Try-it page follows
it: a floating box -- Your Machine, in place of Quick Facts -- a linked
title, == sections, {{info}} and {{warning}}. It goes at TryIt on the
.com (/bin/view/TryIt/), with the console embedded and links back to
the landing page and the source.

The page is on the .com now, so apache-demo.conf lets the .com frame
the console (frame-ancestors), and the demo's host is
try.starshipos-f18.com.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GE3SDvQn5EoxdGufk84zz2
2026-11-06 20:47:35 +00:00

23 lines
1.1 KiB
Plaintext

# apache-demo.conf -- the demo terminal on the public face (issue #115). An example: the host
# name, the certificate paths and the XWiki allowed to embed it are Captain Bob's to set.
# a2enmod proxy proxy_http proxy_wstunnel headers ssl rewrite
<VirtualHost *:443>
ServerName try.starshipos-f18.com
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/try.starshipos-f18.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/try.starshipos-f18.com/privkey.pem
# The terminal may be framed by the "Try it" page on the .com (TryIt), and by nothing else.
Header always unset X-Frame-Options
Header always set Content-Security-Policy "frame-ancestors https://starshipos-f18.com https://www.starshipos-f18.com"
ProxyPreserveHost On
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule ^/ws$ ws://127.0.0.1:7681/ws [P,L]
ProxyPass / http://127.0.0.1:7681/
ProxyPassReverse / http://127.0.0.1:7681/
# A session lives up to 30 minutes; keep its websocket open that long.
ProxyTimeout 1900
</VirtualHost>