feat: x0 static variant — build script, Apache2 vhost, Docker container - #201
Draft
clauspruefer with Copilot wants to merge 1 commit into
Draft
feat: x0 static variant — build script, Apache2 vhost, Docker container#201clauspruefer with Copilot wants to merge 1 commit into
clauspruefer with Copilot wants to merge 1 commit into
Conversation
Copilot created this pull request from a session on behalf of
clauspruefer
July 31, 2026 20:10
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduces a fully self-contained static deployment path for x0, requiring no Python/PostgreSQL backend. Metadata files (
object.json,skeleton.json,menu.json,text-data.json) are provided as templates to be filled in by the operator.Changes
www/sysInitOnLoad.jssysVarTextDataFilesupport — if defined, replaces the hardcoded/python/getText.pyendpoint for text data loading. Falls back to the original path when undefined; dynamic deployments are unaffected.static/— new top-level static deployment rootindex.html— complete entry point with all JS<script>includes and hardcodedsysVar*config (sysVarPreLoadScript = undefined,sysVarMessageHandling = false,sysVarTextDataFile = "/data/text-data.json", etc.)data/object.json,data/skeleton.json,data/menu.json,data/text-data.json— operator-supplied metadata templates; expected format fortext-data.json:{ "TEXT_ID": { "value_de": "...", "value_en": "..." } }bin/build-static.sh*.jsfrom/www,static/(Bootstrap/FontAwesome CSS), andimage/(favicon) into the output directory (defaults tostatic/). Does not overwritedata/templates.conf/vhost-x0-static.conf/var/www/vhosts/x0-staticwithAllowMethods GET POST(required — x0's JS loader uses POST even for static JSON fetches) and forcesContent-Type: application/jsonon.jsonfiles.docker/x0-static.dockerfilebuild-static.shat image build time to assemble the static site from source. Enablesmod_headers+mod_allowmethods. Exposes port 80.docker/build-x0-static.sh— buildsx0-staticimage.docker/x0-start-static.sh— runs container, mapslocalhost:8080 → 80.