mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix: add redirect to https by default (#113)
This commit is contained in:
@@ -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"] : []),
|
||||||
|
|||||||
Reference in New Issue
Block a user