From fbee75d76bc85ba7a2673b3c202646a2e80bdcca Mon Sep 17 00:00:00 2001 From: Harmen Date: Fri, 9 Oct 2026 17:40:50 +0200 Subject: [PATCH] Atreides Services 0.0.6: de API voor afnemers op poort 8091 Alleen 8091 wordt gepubliceerd; de beheer-app blijft achter app_proxy. Geen nieuwe image: 0.0.3 bevat de API al. Suite groen (91, 54, 68, 36, 90, 22 goed; release-bump alles goed). Co-Authored-By: Claude Opus 5.5 --- .../docker-compose.yml | 13 +++++++--- whatsnext-atreides-services/umbrel-app.yml | 26 +++++-------------- 2 files changed, 17 insertions(+), 22 deletions(-) diff --git a/whatsnext-atreides-services/docker-compose.yml b/whatsnext-atreides-services/docker-compose.yml index 4c68a0d..5a2e247 100644 --- a/whatsnext-atreides-services/docker-compose.yml +++ b/whatsnext-atreides-services/docker-compose.yml @@ -8,9 +8,9 @@ # in de root daar), net als bij Atreides Assets; deze store draagt alleen de # app-definitie. # -# Geen `ports:` hier. De beheer-app is een web-UI en hangt volledig achter -# app_proxy. De API voor afnemers krijgt later een eigen poort, en pas DIE wordt -# eventueel gepubliceerd; daar staat nu nog niets voor. +# De beheer-app is een web-UI en hangt volledig achter app_proxy, zonder eigen +# poort. Alleen de API voor afnemers (8091) wordt gepubliceerd: die bedient een +# cliënt zonder browsersessie, net als Gate en de Relay. # ═══════════════════════════════════════════════════════════════════════════════ services: @@ -36,6 +36,13 @@ services: # alleen dit bestand verandert. image: sc.kamenier-hamer.nl/sysop/atreides-services:0.0.3@sha256:022cd900d70a9f896872f86eec4a7bf9a1fdebf57bfe2373b5ecb5adfb76e47d restart: on-failure + # De API voor afnemers, zoals Atreides Assets op de laptop of de Mac. Elke + # aanroep behalve /v1/health vraagt een token, dat je op de pagina Systeem van + # de beheer-app aanmaakt. Zonder certificaat is het http, dus het token gaat + # onversleuteld over het LAN; publiek hoort er een reverse proxy met TLS voor. + # De beheer-app (8090) staat hier met opzet niet bij. + ports: + - "8091:8091" # Geen `user:` nodig: de image zet zelf `USER node` (uid 1000). umbrelOS # maakt de datamap aan als `umbrel`, ook uid 1000, dus node mag erin # schrijven; gemeten op 09-10-2026. diff --git a/whatsnext-atreides-services/umbrel-app.yml b/whatsnext-atreides-services/umbrel-app.yml index 6465370..93055ac 100644 --- a/whatsnext-atreides-services/umbrel-app.yml +++ b/whatsnext-atreides-services/umbrel-app.yml @@ -39,7 +39,7 @@ folderAccess: targetPath: /data/history category: finance name: Atreides Services -version: "0.0.5" +version: "0.0.6" tagline: Your own price feed, recorded around the clock description: >- A price service that runs on your Umbrel and keeps what it records. It fetches prices day @@ -55,25 +55,13 @@ description: >- This is an early version. It records spot prices every minute from Bitvavo and mempool.space, and brings the administration app with its System page and an optional - login of its own. The API for other apps follows in a later version. + login of its own. Other apps read the prices through its API on port 8091, with a token + you create on the System page. releaseNotes: >- - Closed months can now move out of the app's own storage. After each nightly backup, a - closed month that has a backup copy is copied to the new Price history folder, checked, - and only then removed locally. On umbrelOS 2.0 you can point that folder at a folder on - your NAS in the app settings; without that, it stays in the app's own storage. If the - NAS cannot be reached, the app says which month it cannot read instead of showing an - empty series. - - - Backups are now written to their own subfolder backups/ with a marker file, so the app - never writes into a folder that belongs to something else. Backups and Price history may - point at the same folder. - - - Also new: every change to the instrument register is recorded in a changelog, and the new - Changes page shows it with before and after, and lets you undo a change. And an MCP - server, so an AI assistant can read and analyse the prices and make changes; each of its - changes lands in the changelog and can be undone there. + The API for other apps is now reachable on your network, on port 8091 of your Umbrel. + Every call except /v1/health needs a token; create one on the System page of the + administration app. Without a certificate the API runs over plain http, so keep it on + your own network. The administration app itself stays behind the Umbrel login. developer: "WhatsNext?" website: https://sc.kamenier-hamer.nl/sysop/UmbrelApps dependencies: []