diff --git a/proxmox/lxc/ct-117-fluxer/ansible/inventories/agent/group_vars/fluxer_hosts.yml b/proxmox/lxc/ct-117-fluxer/ansible/inventories/agent/group_vars/fluxer_hosts.yml index 2faf628..8c510dd 100644 --- a/proxmox/lxc/ct-117-fluxer/ansible/inventories/agent/group_vars/fluxer_hosts.yml +++ b/proxmox/lxc/ct-117-fluxer/ansible/inventories/agent/group_vars/fluxer_hosts.yml @@ -25,6 +25,7 @@ fluxer_stack_app_proxy_port: 8080 fluxer_stack_livekit_signaling_port: 7880 fluxer_stack_voice_enabled: true fluxer_stack_livekit_tcp_port: 7881 +fluxer_stack_livekit_udp_port: 7882 fluxer_stack_livekit_turn_udp_port: 3478 fluxer_stack_livekit_rtp_port_range: 50000-50100 @@ -34,20 +35,24 @@ fluxer_stack_compose_path: deploy/self-hosting/docker-compose.yml fluxer_stack_compose_sha256: "1cb102f9799ba8858a1fee71abdd4111085c997bdeddd5d878c0d8f28c85fe50" # compose @ 3b1eb567, sha256sum via Workstation 2026-11-27 (d5558cd… war die SHA-256 der 404-Seite!) fluxer_stack_registry: ghcr.io/fluxerapp fluxer_stack_image_tag: v1 -fluxer_stack_images: - - ghcr.io/fluxerapp/fluxer-api@sha256:9d5e0b2cac35435d724e8bb2d0999a278219a811c68b16d6ac455a5d16948b8f - - ghcr.io/fluxerapp/fluxer-gateway@sha256:462e332783375c13e0044f10177069822eb0f457f966a982f4aa182d1eae9043 - - ghcr.io/fluxerapp/fluxer-media-proxy@sha256:2ff45bbcff172c29a0de45c51505631aba8bd30287c408335921e39a87f14688 - - ghcr.io/fluxerapp/fluxer-app-proxy-self-hosted@sha256:30cb19c289a2697dd3d80f50ec43da3caab0674fdee96dd24cee7cfbb0e62370 - - ghcr.io/fluxerapp/fluxer-static@sha256:bb55869686b23046dbfc7730442e382643dd10b5c34be8fae788f4afc53a8f35 - - ghcr.io/fluxerapp/fluxer-admin@sha256:836be5b66ffa3bd83bffb15061b362b4fac34e898352eadf4a554a2f763c9c11 - - ghcr.io/fluxerapp/fluxer-snowflakes@sha256:a75ab098ba71139ed78a8512523dc7449392dc52e1bf1ec3318f05d4d83c4096 - - ghcr.io/fluxerapp/fluxer-users@sha256:22c44aff82785ee31d3e94823fb2775b9fab0845e04179c681a5893f685f5555 - - ghcr.io/fluxerapp/fluxer-messages@sha256:cbdfd2be58aa654d2e599af02de5c1214f0c2b73855f36edfed096a7f92bcca6 - - ghcr.io/fluxerapp/fluxer-gifs@sha256:a7916918e7b42a69dc06fb70349cde457d6fe7226a54bc52105e5ae6aa972c03 - - ghcr.io/fluxerapp/fluxer-unfurl@sha256:0b6ba1e741925727fb09525de7ba3eedfba8b7d728f05f0ba58cd5794a8bf14f - - ghcr.io/fluxerapp/fluxer-push@sha256:3ef343963f67fdec385257d14c67bc640cfa678c22bca7e30edfba997e42e57a - # Komplettiert durch scripts/pin-fluxer-images.sh (skopeo, Workstation, einmalig) + - caddy:2.10-alpine@sha256:4c6e91c6ed0e2fa03efd5b44747b625fec79bc9cd06ac5235a779726618e530d + - chrislusf/seaweedfs:4.34@sha256:6620371e8af8282056685c652d4637265698c9e2c2d59f9594e6ac333ad6c634 + - getmeili/meilisearch:v1.12@sha256:c9fac23131cca4db95173d41cc50fd5639121ee381795528fdd7522d7978a7b8 + - ghcr.io/fluxerapp/fluxer-admin:v1@sha256:836be5b66ffa3bd83bffb15061b362b4fac34e898352eadf4a554a2f763c9c11 + - ghcr.io/fluxerapp/fluxer-api:v1@sha256:9d5e0b2cac35435d724e8bb2d0999a278219a811c68b16d6ac455a5d16948b8f + - ghcr.io/fluxerapp/fluxer-app-proxy-self-hosted:v1@sha256:30cb19c289a2697dd3d80f50ec43da3caab0674fdee96dd24cee7cfbb0e62370 + - ghcr.io/fluxerapp/fluxer-gateway:v1@sha256:462e332783375c13e0044f10177069822eb0f457f966a982f4aa182d1eae9043 + - ghcr.io/fluxerapp/fluxer-gifs:v1@sha256:a7916918e7b42a69dc06fb70349cde457d6fe7226a54bc52105e5ae6aa972c03 + - ghcr.io/fluxerapp/fluxer-media-proxy:v1@sha256:2ff45bbcff172c29a0de45c51505631aba8bd30287c408335921e39a87f14688 + - ghcr.io/fluxerapp/fluxer-messages:v1@sha256:cbdfd2be58aa654d2e599af02de5c1214f0c2b73855f36edfed096a7f92bcca6 + - ghcr.io/fluxerapp/fluxer-snowflakes:v1@sha256:a75ab098ba71139ed78a8512523dc7449392dc52e1bf1ec3318f05d4d83c4096 + - ghcr.io/fluxerapp/fluxer-static:v1@sha256:bb55869686b23046dbfc7730442e382643dd10b5c34be8fae788f4afc53a8f35 + - ghcr.io/fluxerapp/fluxer-unfurl:v1@sha256:0b6ba1e741925727fb09525de7ba3eedfba8b7d728f05f0ba58cd5794a8bf14f + - ghcr.io/fluxerapp/fluxer-users:v1@sha256:22c44aff82785ee31d3e94823fb2775b9fab0845e04179c681a5893f685f5555 + - livekit/livekit-server:v1.12.0@sha256:b1281e66e35e8f9749ffbcf0fe6ab4d40d1438aa00f36c2ea7e6975e5e261e2e + - nats:2.14-alpine@sha256:311da47e2f31c26e99c623cd78d486a1e8ab039c49b32652770bb91a4f70512e + - postgres:16-alpine@sha256:f2f98726820d0342055351c6e9d36e705f5bfffb3dd53ff556325114b08afb6d + - valkey/valkey:8.1-alpine@sha256:9971099af41c36e887aabdfe22b80c0fe45df949163dfc9cb434febc57cfc3fc # Read-only access only; the agent inventory must never converge state. fluxer_stack_start_allowed: false diff --git a/proxmox/lxc/ct-117-fluxer/ansible/inventories/bootstrap/group_vars/fluxer_hosts.yml b/proxmox/lxc/ct-117-fluxer/ansible/inventories/bootstrap/group_vars/fluxer_hosts.yml index a16276f..252feb3 100644 --- a/proxmox/lxc/ct-117-fluxer/ansible/inventories/bootstrap/group_vars/fluxer_hosts.yml +++ b/proxmox/lxc/ct-117-fluxer/ansible/inventories/bootstrap/group_vars/fluxer_hosts.yml @@ -25,6 +25,7 @@ fluxer_stack_app_proxy_port: 8080 fluxer_stack_livekit_signaling_port: 7880 fluxer_stack_voice_enabled: true fluxer_stack_livekit_tcp_port: 7881 +fluxer_stack_livekit_udp_port: 7882 fluxer_stack_livekit_turn_udp_port: 3478 fluxer_stack_livekit_rtp_port_range: 50000-50100 @@ -34,20 +35,24 @@ fluxer_stack_compose_path: deploy/self-hosting/docker-compose.yml fluxer_stack_compose_sha256: "1cb102f9799ba8858a1fee71abdd4111085c997bdeddd5d878c0d8f28c85fe50" # compose @ 3b1eb567, sha256sum via Workstation 2026-11-27 (d5558cd… war die SHA-256 der 404-Seite!) fluxer_stack_registry: ghcr.io/fluxerapp fluxer_stack_image_tag: v1 -fluxer_stack_images: - - ghcr.io/fluxerapp/fluxer-api@sha256:9d5e0b2cac35435d724e8bb2d0999a278219a811c68b16d6ac455a5d16948b8f - - ghcr.io/fluxerapp/fluxer-gateway@sha256:462e332783375c13e0044f10177069822eb0f457f966a982f4aa182d1eae9043 - - ghcr.io/fluxerapp/fluxer-media-proxy@sha256:2ff45bbcff172c29a0de45c51505631aba8bd30287c408335921e39a87f14688 - - ghcr.io/fluxerapp/fluxer-app-proxy-self-hosted@sha256:30cb19c289a2697dd3d80f50ec43da3caab0674fdee96dd24cee7cfbb0e62370 - - ghcr.io/fluxerapp/fluxer-static@sha256:bb55869686b23046dbfc7730442e382643dd10b5c34be8fae788f4afc53a8f35 - - ghcr.io/fluxerapp/fluxer-admin@sha256:836be5b66ffa3bd83bffb15061b362b4fac34e898352eadf4a554a2f763c9c11 - - ghcr.io/fluxerapp/fluxer-snowflakes@sha256:a75ab098ba71139ed78a8512523dc7449392dc52e1bf1ec3318f05d4d83c4096 - - ghcr.io/fluxerapp/fluxer-users@sha256:22c44aff82785ee31d3e94823fb2775b9fab0845e04179c681a5893f685f5555 - - ghcr.io/fluxerapp/fluxer-messages@sha256:cbdfd2be58aa654d2e599af02de5c1214f0c2b73855f36edfed096a7f92bcca6 - - ghcr.io/fluxerapp/fluxer-gifs@sha256:a7916918e7b42a69dc06fb70349cde457d6fe7226a54bc52105e5ae6aa972c03 - - ghcr.io/fluxerapp/fluxer-unfurl@sha256:0b6ba1e741925727fb09525de7ba3eedfba8b7d728f05f0ba58cd5794a8bf14f - - ghcr.io/fluxerapp/fluxer-push@sha256:3ef343963f67fdec385257d14c67bc640cfa678c22bca7e30edfba997e42e57a - # Komplettiert durch scripts/pin-fluxer-images.sh (skopeo, Workstation, einmalig) + - caddy:2.10-alpine@sha256:4c6e91c6ed0e2fa03efd5b44747b625fec79bc9cd06ac5235a779726618e530d + - chrislusf/seaweedfs:4.34@sha256:6620371e8af8282056685c652d4637265698c9e2c2d59f9594e6ac333ad6c634 + - getmeili/meilisearch:v1.12@sha256:c9fac23131cca4db95173d41cc50fd5639121ee381795528fdd7522d7978a7b8 + - ghcr.io/fluxerapp/fluxer-admin:v1@sha256:836be5b66ffa3bd83bffb15061b362b4fac34e898352eadf4a554a2f763c9c11 + - ghcr.io/fluxerapp/fluxer-api:v1@sha256:9d5e0b2cac35435d724e8bb2d0999a278219a811c68b16d6ac455a5d16948b8f + - ghcr.io/fluxerapp/fluxer-app-proxy-self-hosted:v1@sha256:30cb19c289a2697dd3d80f50ec43da3caab0674fdee96dd24cee7cfbb0e62370 + - ghcr.io/fluxerapp/fluxer-gateway:v1@sha256:462e332783375c13e0044f10177069822eb0f457f966a982f4aa182d1eae9043 + - ghcr.io/fluxerapp/fluxer-gifs:v1@sha256:a7916918e7b42a69dc06fb70349cde457d6fe7226a54bc52105e5ae6aa972c03 + - ghcr.io/fluxerapp/fluxer-media-proxy:v1@sha256:2ff45bbcff172c29a0de45c51505631aba8bd30287c408335921e39a87f14688 + - ghcr.io/fluxerapp/fluxer-messages:v1@sha256:cbdfd2be58aa654d2e599af02de5c1214f0c2b73855f36edfed096a7f92bcca6 + - ghcr.io/fluxerapp/fluxer-snowflakes:v1@sha256:a75ab098ba71139ed78a8512523dc7449392dc52e1bf1ec3318f05d4d83c4096 + - ghcr.io/fluxerapp/fluxer-static:v1@sha256:bb55869686b23046dbfc7730442e382643dd10b5c34be8fae788f4afc53a8f35 + - ghcr.io/fluxerapp/fluxer-unfurl:v1@sha256:0b6ba1e741925727fb09525de7ba3eedfba8b7d728f05f0ba58cd5794a8bf14f + - ghcr.io/fluxerapp/fluxer-users:v1@sha256:22c44aff82785ee31d3e94823fb2775b9fab0845e04179c681a5893f685f5555 + - livekit/livekit-server:v1.12.0@sha256:b1281e66e35e8f9749ffbcf0fe6ab4d40d1438aa00f36c2ea7e6975e5e261e2e + - nats:2.14-alpine@sha256:311da47e2f31c26e99c623cd78d486a1e8ab039c49b32652770bb91a4f70512e + - postgres:16-alpine@sha256:f2f98726820d0342055351c6e9d36e705f5bfffb3dd53ff556325114b08afb6d + - valkey/valkey:8.1-alpine@sha256:9971099af41c36e887aabdfe22b80c0fe45df949163dfc9cb434febc57cfc3fc # Bootstrap converges configuration but must not start the stack yet. fluxer_stack_start_allowed: false diff --git a/proxmox/lxc/ct-117-fluxer/ansible/inventories/production/group_vars/fluxer_hosts.yml b/proxmox/lxc/ct-117-fluxer/ansible/inventories/production/group_vars/fluxer_hosts.yml index 62dd030..5fd9dc6 100644 --- a/proxmox/lxc/ct-117-fluxer/ansible/inventories/production/group_vars/fluxer_hosts.yml +++ b/proxmox/lxc/ct-117-fluxer/ansible/inventories/production/group_vars/fluxer_hosts.yml @@ -30,6 +30,7 @@ fluxer_stack_livekit_signaling_port: 7880 # run text-only without any WAN-exposed media ports. fluxer_stack_voice_enabled: true fluxer_stack_livekit_tcp_port: 7881 +fluxer_stack_livekit_udp_port: 7882 fluxer_stack_livekit_turn_udp_port: 3478 fluxer_stack_livekit_rtp_port_range: 50000-50100 @@ -44,20 +45,24 @@ fluxer_stack_compose_path: deploy/self-hosting/docker-compose.yml fluxer_stack_compose_sha256: "1cb102f9799ba8858a1fee71abdd4111085c997bdeddd5d878c0d8f28c85fe50" # compose @ 3b1eb567, sha256sum via Workstation 2026-11-27 (d5558cd… war die SHA-256 der 404-Seite!) fluxer_stack_registry: ghcr.io/fluxerapp fluxer_stack_image_tag: v1 -fluxer_stack_images: - - ghcr.io/fluxerapp/fluxer-api@sha256:9d5e0b2cac35435d724e8bb2d0999a278219a811c68b16d6ac455a5d16948b8f - - ghcr.io/fluxerapp/fluxer-gateway@sha256:462e332783375c13e0044f10177069822eb0f457f966a982f4aa182d1eae9043 - - ghcr.io/fluxerapp/fluxer-media-proxy@sha256:2ff45bbcff172c29a0de45c51505631aba8bd30287c408335921e39a87f14688 - - ghcr.io/fluxerapp/fluxer-app-proxy-self-hosted@sha256:30cb19c289a2697dd3d80f50ec43da3caab0674fdee96dd24cee7cfbb0e62370 - - ghcr.io/fluxerapp/fluxer-static@sha256:bb55869686b23046dbfc7730442e382643dd10b5c34be8fae788f4afc53a8f35 - - ghcr.io/fluxerapp/fluxer-admin@sha256:836be5b66ffa3bd83bffb15061b362b4fac34e898352eadf4a554a2f763c9c11 - - ghcr.io/fluxerapp/fluxer-snowflakes@sha256:a75ab098ba71139ed78a8512523dc7449392dc52e1bf1ec3318f05d4d83c4096 - - ghcr.io/fluxerapp/fluxer-users@sha256:22c44aff82785ee31d3e94823fb2775b9fab0845e04179c681a5893f685f5555 - - ghcr.io/fluxerapp/fluxer-messages@sha256:cbdfd2be58aa654d2e599af02de5c1214f0c2b73855f36edfed096a7f92bcca6 - - ghcr.io/fluxerapp/fluxer-gifs@sha256:a7916918e7b42a69dc06fb70349cde457d6fe7226a54bc52105e5ae6aa972c03 - - ghcr.io/fluxerapp/fluxer-unfurl@sha256:0b6ba1e741925727fb09525de7ba3eedfba8b7d728f05f0ba58cd5794a8bf14f - - ghcr.io/fluxerapp/fluxer-push@sha256:3ef343963f67fdec385257d14c67bc640cfa678c22bca7e30edfba997e42e57a - # Komplettiert durch scripts/pin-fluxer-images.sh (skopeo, Workstation, einmalig) + - caddy:2.10-alpine@sha256:4c6e91c6ed0e2fa03efd5b44747b625fec79bc9cd06ac5235a779726618e530d + - chrislusf/seaweedfs:4.34@sha256:6620371e8af8282056685c652d4637265698c9e2c2d59f9594e6ac333ad6c634 + - getmeili/meilisearch:v1.12@sha256:c9fac23131cca4db95173d41cc50fd5639121ee381795528fdd7522d7978a7b8 + - ghcr.io/fluxerapp/fluxer-admin:v1@sha256:836be5b66ffa3bd83bffb15061b362b4fac34e898352eadf4a554a2f763c9c11 + - ghcr.io/fluxerapp/fluxer-api:v1@sha256:9d5e0b2cac35435d724e8bb2d0999a278219a811c68b16d6ac455a5d16948b8f + - ghcr.io/fluxerapp/fluxer-app-proxy-self-hosted:v1@sha256:30cb19c289a2697dd3d80f50ec43da3caab0674fdee96dd24cee7cfbb0e62370 + - ghcr.io/fluxerapp/fluxer-gateway:v1@sha256:462e332783375c13e0044f10177069822eb0f457f966a982f4aa182d1eae9043 + - ghcr.io/fluxerapp/fluxer-gifs:v1@sha256:a7916918e7b42a69dc06fb70349cde457d6fe7226a54bc52105e5ae6aa972c03 + - ghcr.io/fluxerapp/fluxer-media-proxy:v1@sha256:2ff45bbcff172c29a0de45c51505631aba8bd30287c408335921e39a87f14688 + - ghcr.io/fluxerapp/fluxer-messages:v1@sha256:cbdfd2be58aa654d2e599af02de5c1214f0c2b73855f36edfed096a7f92bcca6 + - ghcr.io/fluxerapp/fluxer-snowflakes:v1@sha256:a75ab098ba71139ed78a8512523dc7449392dc52e1bf1ec3318f05d4d83c4096 + - ghcr.io/fluxerapp/fluxer-static:v1@sha256:bb55869686b23046dbfc7730442e382643dd10b5c34be8fae788f4afc53a8f35 + - ghcr.io/fluxerapp/fluxer-unfurl:v1@sha256:0b6ba1e741925727fb09525de7ba3eedfba8b7d728f05f0ba58cd5794a8bf14f + - ghcr.io/fluxerapp/fluxer-users:v1@sha256:22c44aff82785ee31d3e94823fb2775b9fab0845e04179c681a5893f685f5555 + - livekit/livekit-server:v1.12.0@sha256:b1281e66e35e8f9749ffbcf0fe6ab4d40d1438aa00f36c2ea7e6975e5e261e2e + - nats:2.14-alpine@sha256:311da47e2f31c26e99c623cd78d486a1e8ab039c49b32652770bb91a4f70512e + - postgres:16-alpine@sha256:f2f98726820d0342055351c6e9d36e705f5bfffb3dd53ff556325114b08afb6d + - valkey/valkey:8.1-alpine@sha256:9971099af41c36e887aabdfe22b80c0fe45df949163dfc9cb434febc57cfc3fc # The stack is started only on inventories with fluxer_stack_start_allowed. fluxer_stack_start_allowed: true diff --git a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/defaults/main.yml b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/defaults/main.yml index 878d0f5..115b2a4 100644 --- a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/defaults/main.yml +++ b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/defaults/main.yml @@ -14,5 +14,6 @@ fluxer_firewall_livekit_signaling_port: 7880 # (GNAI-025 Befund e). Set fluxer_stack_voice_enabled=false for text-only. fluxer_stack_voice_enabled: true fluxer_firewall_livekit_tcp_port: 7881 +fluxer_firewall_livekit_udp_port: 7882 fluxer_firewall_livekit_turn_udp_port: 3478 fluxer_firewall_livekit_rtp_port_range: 50000-50100 diff --git a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/templates/nftables.conf.j2 b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/templates/nftables.conf.j2 index 08af562..c93a929 100644 --- a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/templates/nftables.conf.j2 +++ b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_firewall/templates/nftables.conf.j2 @@ -35,6 +35,7 @@ table inet ghostnet_filter { ip saddr @reverse_proxy_ipv4 tcp dport {{ fluxer_firewall_livekit_signaling_port }} ct state new counter accept comment "LiveKit signaling via NPM" {% if fluxer_stack_voice_enabled %} tcp dport {{ fluxer_firewall_livekit_tcp_port }} ct state new counter accept comment "LiveKit ICE TCP (voice)" + udp dport {{ fluxer_firewall_livekit_udp_port }} counter accept comment "LiveKit UDP (voice)" udp dport {{ fluxer_firewall_livekit_turn_udp_port }} counter accept comment "LiveKit TURN/STUN UDP (voice)" udp dport {{ fluxer_firewall_livekit_rtp_port_range }} counter accept comment "LiveKit RTP media range (voice)" {% endif %} diff --git a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/defaults/main.yml b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/defaults/main.yml index 4bbe7fe..795638a 100644 --- a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/defaults/main.yml +++ b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/defaults/main.yml @@ -53,18 +53,31 @@ fluxer_stack_service_edge: caddy fluxer_stack_service_app_proxy: app-proxy fluxer_stack_service_livekit: livekit -# Secrets generated once on the guest (never in git): name -> hex bytes. +# Required secrets of the pinned compose (all ${VAR:?} refs at 3b1eb567), +# generated once on the guest (never in git): name -> hex bytes. +# Plus FLUXER_MEDIA_PROXY_UPLOAD_RELAY_SECRET_BASE64 (base64) and the +# FLUXER_VAPID_* P-256 keypair, both generated in the same one-time task. fluxer_stack_secret_specs: - FLUXER_SETUP_TOKEN: 32 FLUXER_CONNECTION_INITIATION_SECRET: 32 - FLUXER_JWT_SECRET: 32 - POSTGRES_PASSWORD: 24 - MEILI_MASTER_KEY: 32 + FLUXER_GATEWAY_RPC_AUTH_TOKEN: 32 + FLUXER_SUDO_MODE_SECRET: 32 + FLUXER_ADMIN_SECRET_KEY_BASE: 32 + FLUXER_ADMIN_OAUTH_CLIENT_SECRET: 32 + FLUXER_MEDIA_PROXY_SECRET_KEY: 32 FLUXER_S3_ACCESS_KEY: 16 FLUXER_S3_SECRET_KEY: 32 + POSTGRES_PASSWORD: 24 + MEILI_MASTER_KEY: 32 LIVEKIT_API_KEY: 8 LIVEKIT_API_SECRET: 32 +# Extra pinned files from the same upstream commit (bind-mounted by the +# compose: ./livekit.yaml, ./Caddyfile). SHA-256 vom Operator pinnen. +fluxer_stack_livekit_path: deploy/self-hosting/livekit.yaml +fluxer_stack_livekit_sha256: "8d3f13591038ffb483f9f827c73e36732082c51ff1bb247d4782360c55af0b5a" # livekit.yaml @ 3b1eb567, Operator 2026-11-27 +fluxer_stack_caddyfile_path: deploy/self-hosting/Caddyfile +fluxer_stack_caddyfile_sha256: "1b76e5d72717bdd83a253cd0f4b9a1da432e4fd29ad7ccebbfa93234d2101d2f" # Caddyfile @ 3b1eb567, Operator 2026-11-27 + # Small-instance memory caps via upstream's own FLUXER_*_MEMORY_LIMIT knobs # (GNAI-025 Befund d). Sum stays well below the 8 GiB CT limit. fluxer_stack_memory_limits: diff --git a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/tasks/main.yml b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/tasks/main.yml index 0259330..435d8d8 100644 --- a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/tasks/main.yml +++ b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/tasks/main.yml @@ -14,11 +14,14 @@ - fluxer_stack_upstream_commit is not match('PENDING.*') - fluxer_stack_compose_sha256 is not match('PENDING.*') - fluxer_stack_compose_sha256 is match('^[0-9a-f]{64}$') + - fluxer_stack_livekit_sha256 is match('^[0-9a-f]{64}$') + - fluxer_stack_caddyfile_sha256 is match('^[0-9a-f]{64}$') - fluxer_stack_images | length > 0 fail_msg: >- fluxer_stack_upstream_commit / fluxer_stack_compose_sha256 / + fluxer_stack_livekit_sha256 / fluxer_stack_caddyfile_sha256 / fluxer_stack_images still contain PENDING placeholders. Pin the - upstream commit, the compose SHA-256 and every image by digest first + upstream commit, the file SHA-256s and every image by digest first (GNAI-025 Abschnitt 5, Befund c). - name: Create the Fluxer stack directory @@ -51,6 +54,28 @@ sha256 {{ fluxer_stack_compose_sha256 }}) is verified on the real run when: ansible_check_mode +- name: Fetch the pinned upstream livekit.yaml (SHA-256-verifiziert) + ansible.builtin.get_url: + url: "{{ fluxer_stack_compose_url | dirname }}/{{ fluxer_stack_livekit_path | basename }}" + dest: "{{ fluxer_stack_directory }}/livekit.yaml" + owner: root + group: root + mode: "0644" + checksum: "sha256:{{ fluxer_stack_livekit_sha256 }}" + timeout: 60 + when: not ansible_check_mode + +- name: Fetch the pinned upstream Caddyfile (SHA-256-verifiziert; caddy edge disabled, file nur für compose-Vollständigkeit) + ansible.builtin.get_url: + url: "{{ fluxer_stack_compose_url | dirname }}/{{ fluxer_stack_caddyfile_path | basename }}" + dest: "{{ fluxer_stack_directory }}/Caddyfile" + owner: root + group: root + mode: "0644" + checksum: "sha256:{{ fluxer_stack_caddyfile_sha256 }}" + timeout: 60 + when: not ansible_check_mode + - name: Read the pinned compose for the service-name assertions ansible.builtin.slurp: src: "{{ fluxer_stack_compose_file }}" @@ -98,6 +123,12 @@ {% for name, nbytes in fluxer_stack_secret_specs.items() %} printf '%s=%s\n' '{{ name }}' "$(/usr/bin/openssl rand -hex {{ nbytes }})" >> "$tmp" {% endfor %} + printf 'FLUXER_MEDIA_PROXY_UPLOAD_RELAY_SECRET_BASE64=%s\n' "$(/usr/bin/openssl rand -base64 36)" >> "$tmp" + # VAPID web-push keypair (EC P-256, base64-DER wie von Fluxer erwartet) + /usr/bin/openssl ecparam -name prime256v1 -genkey -noout -out "$tmp.vapid.pem" + printf 'FLUXER_VAPID_PRIVATE_KEY=%s\n' "$(/usr/bin/openssl pkcs8 -topk8 -nocrypt -in "$tmp.vapid.pem" -outform DER | /usr/bin/base64 -w0)" >> "$tmp" + printf 'FLUXER_VAPID_PUBLIC_KEY=%s\n' "$(/usr/bin/openssl ec -in "$tmp.vapid.pem" -pubout -outform DER | /usr/bin/tail -c 65 | /usr/bin/base64 -w0)" >> "$tmp" + rm -f "$tmp.vapid.pem" mv "$tmp" "{{ fluxer_stack_secrets_file }}" trap - EXIT args: diff --git a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/templates/docker-compose.ghostnet.yml.j2 b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/templates/docker-compose.ghostnet.yml.j2 index 8ac4b97..dcee0b5 100644 --- a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/templates/docker-compose.ghostnet.yml.j2 +++ b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/templates/docker-compose.ghostnet.yml.j2 @@ -22,15 +22,20 @@ services: {{ fluxer_stack_service_app_proxy }}: <<: *ghostnet-defaults + environment: + # upstream points discovery at the disabled caddy edge; the api serves it + DISCOVERY_UPSTREAM_URL: http://api:8080/api/.well-known/fluxer ports: - "{{ fluxer_stack_app_proxy_port }}:{{ fluxer_stack_app_proxy_port }}" {{ fluxer_stack_service_livekit }}: <<: *ghostnet-defaults ports: + # signaling (NPM /livekit/ -> :7880) + media (WAN via FRITZ!Box) - "{{ fluxer_stack_livekit_signaling_port }}:7880" -{% if fluxer_stack_voice_enabled %} - "{{ fluxer_stack_livekit_tcp_port }}:{{ fluxer_stack_livekit_tcp_port }}/tcp" + - "{{ fluxer_stack_livekit_udp_port }}:{{ fluxer_stack_livekit_udp_port }}/udp" +{% if fluxer_stack_voice_enabled %} - "{{ fluxer_stack_livekit_turn_udp_port }}:{{ fluxer_stack_livekit_turn_udp_port }}/udp" - "{{ fluxer_stack_livekit_rtp_port_range }}:{{ fluxer_stack_livekit_rtp_port_range }}/udp" {% endif %} diff --git a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/templates/fluxer.env.j2 b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/templates/fluxer.env.j2 index 384ccbf..901da56 100644 --- a/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/templates/fluxer.env.j2 +++ b/proxmox/lxc/ct-117-fluxer/ansible/roles/fluxer_stack/templates/fluxer.env.j2 @@ -4,6 +4,9 @@ # once on this guest, never in git). Verify the variable names against the # pinned upstream .env.example when bumping fluxer_stack_upstream_commit. FLUXER_DOMAIN={{ fluxer_stack_public_domain }} +# required by the compose even with the caddy edge disabled (GNAI-025): +FLUXER_CADDY_SITE_ADDRESS={{ fluxer_stack_public_scheme }}://{{ fluxer_stack_public_domain }} +FLUXER_LIVEKIT_ENABLED={{ 'true' if fluxer_stack_voice_enabled else 'false' }} FLUXER_BASE_DOMAIN={{ fluxer_stack_public_domain }} FLUXER_PUBLIC_SCHEME={{ fluxer_stack_public_scheme }} FLUXER_PUBLIC_PORT={{ fluxer_stack_public_port }} diff --git a/proxmox/lxc/ct-117-fluxer/scripts/pin-fluxer-images.sh b/proxmox/lxc/ct-117-fluxer/scripts/pin-fluxer-images.sh index d6213d4..e9b2330 100755 --- a/proxmox/lxc/ct-117-fluxer/scripts/pin-fluxer-images.sh +++ b/proxmox/lxc/ct-117-fluxer/scripts/pin-fluxer-images.sh @@ -21,7 +21,7 @@ readonly EXPECTED_SHA256='1cb102f9799ba8858a1fee71abdd4111085c997bdeddd5d878c0d8 readonly COMPOSE_PATH='deploy/self-hosting/docker-compose.yml' readonly COMPOSE_URL="https://raw.githubusercontent.com/fluxerapp/fluxer/${COMMIT}/${COMPOSE_PATH}" -REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)" +REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../../.." && pwd)" readonly PY="${REPO_ROOT}/.venv/bin/python" [[ -x "$PY" ]] || { echo "missing $PY — build the control venv first (ansible/README.md)" >&2; exit 1; }