Add support for SSL in development (#5668)

This commit is contained in:
Tom Moor
2023-08-09 07:21:41 -04:00
committed by GitHub
parent 454a4e9a8d
commit c32cec7bff
12 changed files with 75 additions and 27 deletions

View File

@@ -105,7 +105,7 @@ describe("#auth.config", () => {
});
it("should return available providers for team subdomain", async () => {
env.URL = sharedEnv.URL = "http://localoutline.com";
env.URL = sharedEnv.URL = "https://app.outline.dev";
env.SUBDOMAINS_ENABLED = sharedEnv.SUBDOMAINS_ENABLED = true;
env.DEPLOYMENT = "hosted";
@@ -121,7 +121,7 @@ describe("#auth.config", () => {
});
const res = await server.post("/api/auth.config", {
headers: {
host: `example.localoutline.com`,
host: `example.outline.dev`,
},
});
const body = await res.json();
@@ -155,7 +155,7 @@ describe("#auth.config", () => {
});
it("should return email provider for team when guest signin enabled", async () => {
env.URL = sharedEnv.URL = "http://localoutline.com";
env.URL = sharedEnv.URL = "https://app.outline.dev";
env.DEPLOYMENT = "hosted";
await buildTeam({
@@ -170,7 +170,7 @@ describe("#auth.config", () => {
});
const res = await server.post("/api/auth.config", {
headers: {
host: "example.localoutline.com",
host: "example.outline.dev",
},
});
const body = await res.json();
@@ -181,7 +181,7 @@ describe("#auth.config", () => {
});
it("should not return provider when disabled", async () => {
env.URL = sharedEnv.URL = "http://localoutline.com";
env.URL = sharedEnv.URL = "https://app.outline.dev";
env.DEPLOYMENT = "hosted";
await buildTeam({
@@ -197,7 +197,7 @@ describe("#auth.config", () => {
});
const res = await server.post("/api/auth.config", {
headers: {
host: "example.localoutline.com",
host: "example.outline.dev",
},
});
const body = await res.json();