Last app-specific bits out of central infra (from the per-app audit):
- traefik middleware: replace the hardcoded onlyoffice/owncloud exclude-list +
onlyoffice-headers special-case (in traefik_middlewares.sh AND
traefik_port_middlewares.sh) with two per-app hooks an app ships in
containers/<app>/scripts/<app>_traefik.sh:
appTraefikSkipsDefaultMiddleware_<app> (marker: opt out of default@file)
appTraefikExtraMiddlewares_<app> (echo extra middleware entries)
onlyoffice defines both; owncloud defines the skip marker. Two narrow hooks
(not one clever one) so behavior — incl. the different onlyoffice-headers
ordering between the two files — is preserved exactly. Verified with stubs:
identical middleware strings across normal/onlyoffice/owncloud × authelia/wl.
- moneyapp: add a placeholder icon (geometric banknote SVG, 512x512) so it no
longer falls back to default.svg in the WebUI.
Central traefik/compose code is now app-agnostic.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
13 lines
526 B
Bash
13 lines
526 B
Bash
#!/bin/bash
|
|
|
|
# OnlyOffice traefik middleware hooks (consumed by traefikSetupLabelsMiddlewares
|
|
# and tagsProcessorPortMiddlewares). It serves the document editor with its own
|
|
# header requirements, so it opts out of the default chain and adds its own
|
|
# headers middleware.
|
|
|
|
# Marker — presence means: don't attach default@file to this app's routers.
|
|
appTraefikSkipsDefaultMiddleware_onlyoffice() { :; }
|
|
|
|
# Extra middleware entries appended for this app.
|
|
appTraefikExtraMiddlewares_onlyoffice() { echo "onlyoffice-headers"; }
|