fix(traefik): update server configuration to use new host parameter and ensure HTTPS is set correctly

- Modified the updateServerTraefik function to utilize the newHost parameter instead of user.host.
- Ensured the HTTPS field is correctly initialized in the test for server configuration.
This commit is contained in:
Mauricio Siu
2025-04-06 02:37:15 -06:00
parent e5a3e56e13
commit bca6af77fd
2 changed files with 4 additions and 4 deletions

View File

@@ -74,7 +74,6 @@ beforeEach(() => {
test("Should read the configuration file", () => {
const config: FileConfig = loadOrCreateConfig("dokploy");
expect(config.http?.routers?.["dokploy-router-app"]?.service).toBe(
"dokploy-service-app",
);
@@ -84,6 +83,7 @@ test("Should apply redirect-to-https", () => {
updateServerTraefik(
{
...baseAdmin,
https: true,
certificateType: "letsencrypt",
},
"example.com",