Skip to content

Commit

Permalink
fix:DccOptions error (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
MayueCif authored Feb 27, 2023
1 parent 290339b commit e4e6590
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static string GetServerDomain(this IMasaStackConfig masaStackConfig, stri
domain = $"{protocol}://{secondaryDomain}.{masaStackConfig.Namespace}";
}
}
return domain;
return domain.TrimEnd('.');
}

public static string GetUIDomain(this IMasaStackConfig masaStackConfig, string protocol, string project, string service)
Expand All @@ -75,7 +75,7 @@ public static string GetUIDomain(this IMasaStackConfig masaStackConfig, string p
domain = $"{protocol}://{secondaryDomain}.{masaStackConfig.DomainName.TrimStart('.')}";
}
}
return domain;
return domain.TrimEnd('.');
}

public static string GetAuthServiceDomain(this IMasaStackConfig masaStackConfig)
Expand Down Expand Up @@ -169,7 +169,8 @@ public static DccOptions GetDefaultDccOptions(this IMasaStackConfig masaStackCon
Password = redis.RedisPassword
},
Secret = masaStackConfig.DccSecret,
PublicSecret = masaStackConfig.DccSecret
PublicSecret = masaStackConfig.DccSecret,
ConfigObjectSecret = masaStackConfig.DccSecret
};

return options;
Expand Down

0 comments on commit e4e6590

Please sign in to comment.