Portal v0.10.2, and the host's own edits in the repo

compose.yml and portal/Dockerfile on kasse have carried uncommitted
edits since 2026-10-26: the learn cache, Ollama, and SITE_NAME: tomtervel.
A deploy runs git reset --hard, which would take them away. SITE_NAME
would then fall back to "Tomter Vel", the namespace tomter-vel, and from
portal 0.9 the site would come up empty under it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015TMMKWhj4225cSbXKhSz6e
This commit is contained in:
blandClaude Opus 5.5 committed 2026-11-01 13:15:04 +01:00
1 parent a30741ea43
commit 1bb21d7cbb
3 files changed
+11 -2

No files matched your search

+2 -2
View File
@@ -9,12 +9,12 @@ PORTAL_HOST=vel.klingenbergbygg.no
ID_HOST=id.vel.klingenbergbygg.no ID_HOST=id.vel.klingenbergbygg.no
# The portal version to run: a tag of https://project.uhhm.no/uhhm/portal # The portal version to run: a tag of https://project.uhhm.no/uhhm/portal
PORTAL_RELEASE=v0.6.0 PORTAL_RELEASE=v0.10.2
# The content this instance serves, and reloads live on every push. # The content this instance serves, and reloads live on every push.
CONTENT_REPO=https://prosjekt.klingenbergbygg.no/tomtervel/questions CONTENT_REPO=https://prosjekt.klingenbergbygg.no/tomtervel/questions
CONTENT_BRANCH=main CONTENT_BRANCH=main
SITE_NAME="Tomter Vel" SITE_NAME=tomtervel
# Generated once by bootstrap.sh if left empty. # Generated once by bootstrap.sh if left empty.
NATS_PASSWORD= NATS_PASSWORD=
+8
View File
@@ -90,6 +90,13 @@ services:
LEPTOS_SITE_ADDR: 0.0.0.0:3000 LEPTOS_SITE_ADDR: 0.0.0.0:3000
LEPTOS_SITE_ROOT: site LEPTOS_SITE_ROOT: site
LEPTOS_HASH_FILES: "true" LEPTOS_HASH_FILES: "true"
LEARN_CACHE: /app/learn-cache
OLLAMA_HOST: http://100.64.0.1:11434
# The namespace of everything this site keeps on NATS from portal 0.9.
# Must not change: a new name is a new, empty site.
SITE_NAME: tomtervel
volumes:
- learn_cache:/app/learn-cache
ports: ports:
# Host-published for kasse's host Caddy (vel.klingenbergbygg.no -> here). # Host-published for kasse's host Caddy (vel.klingenbergbygg.no -> here).
# With --profile edge the bundled Caddy proxies portal:3000 internally # With --profile edge the bundled Caddy proxies portal:3000 internally
@@ -138,6 +145,7 @@ volumes:
caddy_config: caddy_config:
nats_data: nats_data:
kanidm_data: kanidm_data:
learn_cache:
# Pin the project network subnet inside 172.16/12 so Kanidm's X-Forwarded-For # Pin the project network subnet inside 172.16/12 so Kanidm's X-Forwarded-For
# trust (kanidm/server.toml.tpl) stays valid under Podman — its default pool # trust (kanidm/server.toml.tpl) stays valid under Podman — its default pool
+1
View File
@@ -21,6 +21,7 @@ RUN curl -sfL "https://project.uhhm.no/uhhm/portal/releases/download/${PORTAL_RE
&& test -x /app/portal && test -x /app/portal
# A non-root user; the image ships nothing writable it needs. # A non-root user; the image ships nothing writable it needs.
RUN useradd --system --no-create-home portal RUN useradd --system --no-create-home portal
RUN mkdir -p /app/learn-cache && chown portal /app/learn-cache
USER portal USER portal
EXPOSE 3000 EXPOSE 3000
CMD ["/app/portal"] CMD ["/app/portal"]