fix: add redirect to https by default (#113)

This commit is contained in:
Mauricio Siu
2024-05-29 23:33:33 -06:00
committed by GitHub
parent 71be1ed180
commit a310065766

View File

@@ -44,6 +44,7 @@ const createRegistryRouterConfig = async (registry: Registry) => {
const routerConfig: HttpRouter = { const routerConfig: HttpRouter = {
rule: `Host(\`${registryUrl}\`)`, rule: `Host(\`${registryUrl}\`)`,
service: "dokploy-registry-service", service: "dokploy-registry-service",
middlewares: ["redirect-to-https"],
entryPoints: [ entryPoints: [
"web", "web",
...(process.env.NODE_ENV === "production" ? ["websecure"] : []), ...(process.env.NODE_ENV === "production" ? ["websecure"] : []),