rlz-engine 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/back/server.js +3 -2
- package/package.json +1 -1
package/dist/back/server.js
CHANGED
|
@@ -30,11 +30,11 @@ export async function runServer({ production, domain, certDir, staticDir, init }
|
|
|
30
30
|
return httpErrors.notFound();
|
|
31
31
|
});
|
|
32
32
|
addStaticEndpoints(httpServer, staticDir);
|
|
33
|
-
await httpServer.listen({
|
|
33
|
+
await httpServer.listen({ port: 8080 });
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
httpServer.register(fastifyAcmeUnsecurePlugin, { redirectDomain: domain });
|
|
37
|
-
await httpServer.listen({ port: 80 });
|
|
37
|
+
await httpServer.listen({ port: 80, host: '::' });
|
|
38
38
|
const certAndKey = await getCertAndKey(certDir, domain);
|
|
39
39
|
const httpsServer = fastify({
|
|
40
40
|
http2: true,
|
|
@@ -61,6 +61,7 @@ export async function runServer({ production, domain, certDir, staticDir, init }
|
|
|
61
61
|
return httpErrors.notFound();
|
|
62
62
|
});
|
|
63
63
|
addStaticEndpoints(httpsServer, staticDir);
|
|
64
|
+
await httpsServer.listen({ port: 443, host: '::' });
|
|
64
65
|
}
|
|
65
66
|
function addStaticEndpoints(server, staticPath) {
|
|
66
67
|
const absStaticPath = path.resolve(staticPath);
|