import { CONFIG } from '../initializers/config'
import { ROUTE_CACHE_LIFETIME, WEBSERVER } from '../initializers/constants'
import { cacheRoute } from '../middlewares/cache/cache'
+import { handleStaticError } from '@server/middlewares'
const wellKnownRouter = express.Router()
}
)
+wellKnownRouter.use('/.well-known/',
+ cacheRoute(ROUTE_CACHE_LIFETIME.WELL_KNOWN),
+ express.static(CONFIG.STORAGE.WELL_KNOWN_DIR, { fallthrough: false }),
+ handleStaticError
+)
+
// ---------------------------------------------------------------------------
export {