#!/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"; }
