diff --git a/freeport/data/.gitkeep b/freeport/data/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/freeport/docker-compose.yml b/freeport/docker-compose.yml new file mode 100644 index 000000000..3c96eda9d --- /dev/null +++ b/freeport/docker-compose.yml @@ -0,0 +1,39 @@ +version: "3.7" + +services: + app_proxy: + environment: + APP_HOST: freeport_server_1 + APP_PORT: 1988 + # Keep the web app (/) behind Umbrel auth, but let the machine-to-machine + # routes through unauthenticated: MCP clients, the healthcheck, and + # native/mobile Web Push + Expo registration can't send an Umbrel session + # cookie. /subscribe is protected instead by REQUIRE_SUBSCRIBE_AUTH below. + PROXY_AUTH_WHITELIST: "/mcp,/health,/vapidPublicKey,/subscribe,/unsubscribe" + + server: + image: ghcr.io/ptrinh/freeport-self-hosted:0.7.1@sha256:c94e39ac3974dfaa957a72e7add5b6ae44bb4987122b5ae960e190f93238753d + restart: on-failure + stop_grace_period: 1m + ports: + # Embedded NIP-01 Nostr relay (WebSocket) — nearby users can add + # ws://:1989 to their relay list. Ephemeral / in-memory: events + # are cleared on restart. Remove this mapping to keep it private. + - "1989:1989" + environment: + - HOST=0.0.0.0 + - PORT=1988 + - RELAY_HOST=0.0.0.0 + # Rate limits (per-IP + global token buckets) + - RATE_LIMIT_PER_MIN=300 + - RATE_LIMIT_BURST=60 + - RATE_LIMIT_GLOBAL_PER_MIN=2500 + # Push notifier. VAPID keys auto-generate into DATA_DIR on first run. + - ENABLE_NOTIFY=1 + - DATA_DIR=/data + - VAPID_SUBJECT=mailto:admin@umbrel.local + # A DM-watch /subscribe without a valid auth proof is rejected (the route + # is whitelisted from Umbrel auth above, so this is its access control). + - REQUIRE_SUBSCRIBE_AUTH=1 + volumes: + - ${APP_DATA_DIR}/data:/data diff --git a/freeport/umbrel-app.yml b/freeport/umbrel-app.yml new file mode 100644 index 000000000..5264f98da --- /dev/null +++ b/freeport/umbrel-app.yml @@ -0,0 +1,66 @@ +manifestVersion: 1 +id: freeport +storage: + dataRoot: data +category: networking +name: Freeport +version: "0.7.1" +tagline: Self-hosted Freeport — the P2P marketplace, on your own box +description: >- + Run all of Freeport, the decentralized peer-to-peer marketplace for rides, + services, and goods built on Nostr — from your own Umbrel. One app, four + jobs: + + + 1. The Freeport web app itself, served from your box: open the app and + you're on Freeport with no app store and no third-party hosting. + + + 2. A read-only Model Context Protocol (MCP) endpoint that lets AI agents + search Freeport's Nostr events — ride/service/goods requests and offers, + reputation, and profiles — filtered by kind, tag, and geohash radius. + + + 3. A push notifier that watches the relays and pushes new matching intents + and direct messages to subscribers over Web Push (browsers / PWA) and Expo + Push (native iOS/Android). + + + 4. An embedded NIP-01 Nostr relay (port 1989) that nearby users can add to + their relay list. It is ephemeral / in-memory: events are held while the app + runs and are cleared when the app restarts — it's a low-latency local hop for + your community's live traffic, not durable archival storage. Pair it with + public relays (Freeport uses several by default) so nothing is lost. + + + Running your own node makes your community independent of any central server. + VAPID keys are generated and persisted automatically on first run. + + + The bundled web app connects to Freeport's public relays and hosted + notification service, so it works immediately. The embedded relay + (ws://:1989) can be added by other Nostr clients, and the + MCP endpoint for AI agents is at http://:1988/mcp. + + + Privacy: analytics and crash reporting are off by default in this build and + can be turned on in Settings > About. When location access is off, the web + app looks up your approximate region once from your IP address (via + ipwho.is or ipapi.co), and area names are looked up with OpenStreetMap's + Nominatim. +developer: Freeport +website: https://freeport.network +dependencies: [] +repo: https://github.com/ptrinh/freeport +support: https://github.com/ptrinh/freeport/issues +port: 1988 +gallery: + - 1.webp + - 2.webp + - 3.webp +releaseNotes: "" +path: "" +defaultUsername: "" +defaultPassword: "" +submitter: ptrinh +submission: https://github.com/getumbrel/umbrel-apps/pull/5796 diff --git a/hestiacp/data/backup/.gitkeep b/hestiacp/data/backup/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/hestiacp/data/hestia-conf/.gitkeep b/hestiacp/data/hestia-conf/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/hestiacp/data/hestia/.gitkeep b/hestiacp/data/hestia/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/hestiacp/data/home/.gitkeep b/hestiacp/data/home/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/hestiacp/data/mysql/.gitkeep b/hestiacp/data/mysql/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/hestiacp/data/postgresql/.gitkeep b/hestiacp/data/postgresql/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/hestiacp/docker-compose.yml b/hestiacp/docker-compose.yml new file mode 100644 index 000000000..0fcee783e --- /dev/null +++ b/hestiacp/docker-compose.yml @@ -0,0 +1,50 @@ +version: "3.7" + +services: + # HestiaCP serves its panel only over HTTPS (self-signed) on 8083, but + # umbrelOS's app gateway only talks plain HTTP to the app, so a tiny socat + # sidecar bridges plain HTTP to TLS for the panel. + app_proxy: + environment: + APP_HOST: hestiacp_sslproxy_1 + APP_PORT: 8081 + + sslproxy: + image: alpine/socat:1.8.0.0@sha256:a6be4c0262b339c53ddad723cdd178a1a13271e1137c65e27f90a08c16de02b8 + restart: on-failure + command: + - "TCP-LISTEN:8081,fork,reuseaddr" + - "OPENSSL-CONNECT:hestiacp_hestia_1:8083,verify=0" + + hestia: + # Non-privileged, multi-arch HestiaCP, web hosting variant (no mail, DNS + # or FTP): github.com/ptrinh/hestiacp-docker + image: ghcr.io/ptrinh/hestiacp:build-46609422088-web@sha256:ff721424445a83cf853d22568bf9642f61cc89fcd4253fb0f1b67e3c77560d23 + restart: on-failure + # Lets MariaDB and PostgreSQL shut down cleanly on stop. + stop_grace_period: 1m + environment: + # The image entrypoint sets HestiaCP's admin password to this on first + # start (once), before any service starts. + - APP_PASSWORD=${APP_PASSWORD} + volumes: + - ${APP_DATA_DIR}/data/home:/home + - ${APP_DATA_DIR}/data/mysql:/var/lib/mysql + - ${APP_DATA_DIR}/data/postgresql:/var/lib/postgresql + - ${APP_DATA_DIR}/data/hestia:/usr/local/hestia/data + - ${APP_DATA_DIR}/data/hestia-conf:/usr/local/hestia/conf + - ${APP_DATA_DIR}/data/backup:/backup + # Hosted sites on alternate host ports so HestiaCP never claims Umbrel's + # 80/443. The panel itself is reached through app_proxy, not these. + ports: + - "9088:80" + - "9448:443" + # Only report healthy once the panel really works: the admin password has + # been applied (sentinel), the login UI renders, and the hosted-sites web + # server returns a successful response on the container IP. + healthcheck: + test: ["CMD-SHELL", "test -f /usr/local/hestia/data/.admin-password-set && curl -k -fs https://localhost:8083/login/ | grep -q 'name=.user.' && curl -fs -o /dev/null --max-time 5 http://$$(hostname -i | awk '{print $$1}'):80/ || exit 1"] + interval: 30s + timeout: 10s + retries: 10 + start_period: 5m diff --git a/hestiacp/umbrel-app.yml b/hestiacp/umbrel-app.yml new file mode 100644 index 000000000..0397b8016 --- /dev/null +++ b/hestiacp/umbrel-app.yml @@ -0,0 +1,55 @@ +manifestVersion: 2.0 +id: hestiacp +storage: + dataRoot: data +name: Hestia Control Panel +tagline: Open-source web hosting control panel +category: networking +version: "1.10.10" +port: 9083 +description: >- + Hestia Control Panel (HestiaCP) is a free, open-source web hosting control + panel: host websites and manage their databases and files from a clean web + UI, the kind of panel you'd normally run on a dedicated server, now on your + Umbrel. + + + This package runs a purpose-built, non-privileged, multi-architecture image + (ghcr.io/ptrinh/hestiacp): systemd is replaced with a systemctl shim, and the + privilege-requiring features (firewall, fail2ban, disk quota) are disabled, so + it runs with no privileged mode and no extra Linux capabilities. It includes + web hosting (Nginx + Apache with PHP-FPM), databases (MariaDB + PostgreSQL, + with phpMyAdmin and phpPgAdmin built into the panel), the File Manager, cron + jobs and backups. Mail, DNS and FTP are not included. + + + Notes: + + - Log in with username "admin" and the password shown on this page (set on + first start). + + - HestiaCP does not claim Umbrel's ports 80/443. Hosted websites are published + on alternate host ports: HTTP on 9088 and HTTPS on 9448. + + - For a user's SSH Access shell use "bash" (or sh/dash/rbash); "jailbash" is + not supported on this unprivileged build (its bubblewrap sandbox needs + privileges the container does not have) and would lock that user out. +developer: HestiaCP +website: https://hestiacp.com +submitter: ptrinh +submission: https://github.com/getumbrel/umbrel-apps/pull/5773 +repo: https://github.com/ptrinh/hestiacp-docker +support: https://forum.hestiacp.com +gallery: + - 1.webp + - 2.webp + - 3.webp + - 4.webp + - 5.webp +releaseNotes: "" +dependencies: [] +path: "" +requiresHttps: true +deterministicPassword: true +defaultUsername: admin +defaultPassword: ${APP_PASSWORD}