services: server: image: mbentley/omada-controller:6.3.0.112@sha256:de268d09b258a53a167ec94492c44361df118a766832adb544f5d36d64d9e570 restart: on-failure stop_grace_period: 60s # Host networking is required so the controller can discover and adopt Omada devices on the local network network_mode: host ulimits: nofile: soft: 4096 hard: 8192 environment: PUID: 1000 PGID: 1000 MANAGE_HTTP_PORT: 8072 PORTAL_HTTP_PORT: 8072 volumes: - ${APP_DATA_DIR}/data/config:/opt/tplink/EAPController/data - ${APP_DATA_DIR}/data/logs:/opt/tplink/EAPController/logs # Omada always redirects its HTTP port to its own self-signed HTTPS port. # This proxy serves the web UI as plain HTTP on the app port, so umbrelOS can add its own HTTPS in front. web: image: caddy:2.11.9-alpine@sha256:0bbb055bda6793c999bde78b1b5ce3e89f829fb031af2cf50056ea1246559fee user: "1000:1000" restart: on-failure network_mode: host command: - sh - -c - | cat > /tmp/Caddyfile <<'CADDY' { admin off } (omada) { reverse_proxy https://127.0.0.1:8043 { transport http { tls_insecure_skip_verify } header_down Location ^https?://[^/]+:(8043|8072) "" {block} } } :8074 { # Omada marks its session cookie Secure, so browsers drop it on plain http and login loops. # Strip Secure only when the app is opened over plain http; https keeps it. @plain_http not header X-Forwarded-Proto https handle @plain_http { import omada { header_down Set-Cookie "(?i);\s*secure" "" } } handle { import omada } } CADDY exec caddy run --config /tmp/Caddyfile --adapter caddyfile