fix(server/caddy): certificats on-demand TLS émis correctement
- next.config.js: skipTrailingSlashRedirect évite le 308 sur /api/check-domain - middleware.ts: exclut /api/check-domain du rewrite pour ne pas interférer - Caddy peut maintenant valider les sous-domaines d'instances auprès du serveur
This commit is contained in:
@@ -24,5 +24,5 @@ export function middleware(req: NextRequest) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const config = {
|
export const config = {
|
||||||
matcher: ["/((?!api/proxy|_next|static|favicon.ico).*)"],
|
matcher: ["/((?!api/proxy|api/check-domain|_next|static|favicon.ico).*)",],
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
trailingSlash: true,
|
trailingSlash: true,
|
||||||
|
skipTrailingSlashRedirect: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = nextConfig
|
module.exports = nextConfig
|
||||||
|
|||||||
Reference in New Issue
Block a user