Skip to content

Commit

Permalink
chore: switch to KRATOS_ADMIN_ENDPOINT env var
Browse files Browse the repository at this point in the history
  • Loading branch information
miran248 committed Aug 27, 2023
1 parent 6a0935d commit b549c94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/website/app/ory.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import { Kratos } from "~/openapi/kratos";
// export const oathkeeper = new ApiApi(undefined, "http://localhost:4456");

export const kratos = createClient<Kratos>({
// endpoint: process.env.KRATOS_ADMIN_ENDPOINT,
endpoint: process.env.KRATOS_PUBLIC_ENDPOINT,
endpoint: process.env.KRATOS_ADMIN_ENDPOINT,
});

// admin
Expand Down
3 changes: 1 addition & 2 deletions src/website/app/routes/api.webhooks.oidc.$.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { redirect } from "remix-typedjson";
import { sessionStorage } from "~/session.server";
import { loaderGuard } from "~/utils";

// const kratosUrl = process.env.KRATOS_PUBLIC_ENDPOINT;
const kratosUrl = "https://public-kratos.248.sh";
const kratosUrl = process.env.KRATOS_PUBLIC_ENDPOINT;

export const loader = async ({ params, request }: LoaderArgs) => {
const guard = await loaderGuard(request);
Expand Down

0 comments on commit b549c94

Please sign in to comment.