chore: Fosil-erako azken doikuntzak egiten ditu
This commit is contained in:
@@ -7,7 +7,15 @@ export default {
|
||||
*
|
||||
* This gives you an opportunity to extend code.
|
||||
*/
|
||||
register(/* { strapi }: { strapi: Core.Strapi } */) {},
|
||||
register({ strapi }) {
|
||||
// Force the socket to be treated as encrypted for proxy setups
|
||||
strapi.server.use(async (ctx, next) => {
|
||||
if (ctx.req?.socket) {
|
||||
(ctx.req.socket as any).encrypted = true;
|
||||
}
|
||||
await next();
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* An asynchronous bootstrap function that runs before
|
||||
|
||||
Reference in New Issue
Block a user